Search code examples
advanceddatagrid

How can I programmatically get and set column sorting parameters in AdvancedDataGrid?


How can I programmatically get and set column sorting parameters in AdvancedDataGrid?

I'm especially interested in value that indicates that user have sorted data in AdvancedDataGridColumn by clicking on its header and value that indicates sorting order. I haven't found appropriate properties in AdvancedDataGridColumn documentation. There is only sortDescending property, but that's not enough.


Solution

  • Pass the column object to the getFieldSortInfo(column) method; it will give you a SortInfo object that has status (actual or proposed) and descending (boolean) variables that contain the information you need.