Is it possible to sort on multiple columns within a grid section. I am using the oGrid.sort(0,-1) to do so on one column.
Printable View
Is it possible to sort on multiple columns within a grid section. I am using the oGrid.sort(0,-1) to do so on one column.
Hi RD,
When sorting a Grid Section, an automatically built index tag is used to sort the data based on a single column. The grid.sort() method does not handle multiple columns, but you could build your own index tag on the order you want with multiple columns and set order to that tag then refresh() the Grid Section.
When using the column-header-click sorting, the Section Sort delegate is called and passed the column number and the direction (1 or -1). This allows for a customized sort to be coded, e.g. using the set order and refresh() as above.
Regards,
Yvonne
OK, let me give it a try. Thanks.