Categories | Question details Back To List | ||
Multicolumn Sorting Hi Team, I want to do a multicolumn sorting in dhtmlxGrid.The scenario is, when we click on header there should pop up context box with options for select other column for sorting.Can you please help me how to do it? Thanks, -Agile Answer posted by Support on Oct 16, 2008 08:57 The technical part of sorting by multiple columns described here. http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Sorting_in_grid.html#grid_art_sort While grid has no native API for multicolumn funtionality - custom sorting routine can be used to create such complex rules. >>when we click on header there should pop up context box with options for select other column for sorting. Grid provides onHeaderClick event, which can be used to catch the moment when click occurs. After that you can show any custom form to configure sorting, and call grid.sortRows with custom sorting type, after sortable columns selection. |