Posted 25 June 2020, 9:51 am EST
Hello,
how do i add sort indicator in the code for a specific column?
thank you
Forums Home / Wijmo / General Discussion
Posted by: igelfenbeyn on 25 June 2020, 9:51 am EST
Posted 25 June 2020, 9:51 am EST
Hello,
how do i add sort indicator in the code for a specific column?
thank you
Posted 26 June 2020, 5:45 am EST
Hi,
For this, you may apply the sorting to that specific column using the following code:
grid.collectionView.sortDescriptions.push(new WjCore.SortDescription("country",true));
grid.selection = new WjGrid.CellRange(0,0);
Please also refer to the attached sample for reference.
Regards,
Manish Gupta
FlexGrid-Sort.zip