SortType

Mar 2, 2012 at 10:00 AM

Hi again,

I think you should add also the possibility to adding the sorttype options, useful when you use the LoadOnce option.

I created the enum:

// Summary:
    //     jqGrid sort types
    public enum JqGridColumnSortingTypes
    {
        // Summary:
        //     Text
        Text = 0,
        //
        // Summary:
        //     Int
        Int = 1,
        //
        // Summary:
        //     Float
        Float = 2,
        //
        // Summary:
        //     Date
        Date = 3,
    }


 After I add the SortType property to JqGridColumnModel with default = Text:

 public JqGridColumnSortTypes SortType { get; set; }
and in the JqGridHelper I add this:
if (!columnModel.Sortable)
                    javaScriptBuilder.AppendFormat("sortable: false, ");
                else
                    javaScriptBuilder.AppendFormat("sorttype: '{0}', ", columnModel.SortType.ToString().ToLower());
 
Coordinator
Mar 2, 2012 at 10:11 AM

Please take a look at Issue Tracker, it's already there in Work Item #11798.

Mar 2, 2012 at 10:15 AM

Yes sorry, I don't use codeplex very well and I didn't search it in the IssueTracker.

thanks anyway for the information