sort.onChanged event not returning column being sorted on RC21 upgrade.
Up until 3.0.RC18, when handling the column header click sorting through grid.apiCore.on.sortChanged(grid,sortedColumns), sortedColumns was an array of object where the object was the last column being clicked... Today I upgraded to RC21, and sortedColumns is now returning me array of all the columns being sorted in my sequence ..... instead of returning just the column being sorted last. How can I get the column being last sorted/ column clicked last. I am using external sorting, so I want to know which column is being clicked..
Any help would be appreciated.
I checked between RC18--RC21. sortColumns was returning array of column being sorted by header click from RC-19. In RC19, RC20, it returns columns having sorting applied, where all the columns have the same priority of sort, but in RC21, it returns the columns with different priority of sort.
Did more research and found that the problem is not in sortChanged event but rather its the setting of columnDefs thats causing this problem. Will investigate more into that area now.
Closing this issue as its unrelated to sortChanged event.