Enum GroupingSortBehavior
Defines the constants that specifies the sort behavior of the table.
Namespace: Syncfusion.Grouping
Assembly: Syncfusion.Grouping.Base.dll
Syntax
public enum GroupingSortBehavior
Remarks
The engine has a built-in optimization when you change sort columns that allows it to perform the sorting on an on-demand basis group-by-group. Suppose you have a table with 200 different countries and you change the sort order of the cities. It is not necessary to sort the whole table. Instead, the individual groups can be sorted when they are scrolled into view. Such on-demand sorting can only be done with internal sort routines and not by letting your data source do the sorting.
If you return GroupByGroup, you allow this optimization. IGroupingList.ApplySort will not be called when the table is already sorted by grouped or relation child columns.
If you return Table, you do not allow this optimization. In that case, the whole table will be sorted and IGroupingList.ApplySort is called.
Fields
Name | Description |
---|---|
GroupByGroup | Allow group-by-group sort optimization. IGroupingList.ApplySort will not be called when the table is already sorted by grouped or relation child columns. |
Table | Do not allow group-by-group sort optimization. In that case, the whole table will be sorted and IGroupingList.ApplySort is called. |