In Ig Grid, we group by one column, the group's order are default ordered by alphabetical.
Can we control the group's order by our self?
I'm trying to save the state of the grid (such as filtering, grouping, sorting). This way when the user views the grid the next time, it's already sorted, grouped and filtered the way it was intended. However, I'm having two issues.
1) When manually grouping the grid using the API, I can't set the sorting of the grouped column. It always sorts in ascending order.
2) When a column is sorted on, and if that column also happens to be grouped on, the column sort order does not reflect on the grouping sort order for that column.
Your assistance in this matter would be much appreciated. Thanks!
Hi Spark,
By default the sort direction is ascending and cannot be changed.Default order is not alphabetical, but in depends on the column data type. Strings are grouped by alphabetical order. Numbers are grouped in numerical order.Date columns currently are not grouped correctly. This is a known limitation and will be fixed in 12.2 release. Custom GroupBy Dates sample shows how to workaround this limitation.If you want to make your custom grouping then you should define custom comparer function in the igGridGroupBy.columnSettings.groupComparerFunction property.You can see the following samples for example code:Custom GroupBy NameCustom GroupBy DatesCustom GroupBy Text
Hope this helps,Martin PavlovInfragistics, Inc.