This thing is not working for me
and i have attached the before sorting and after sorting event. But those events are never called when i try run this piece of code
Please be sure thay you are using correct column index ( indexes are zero based, so 3 means 4th column )
Also, beware that data loading is async, so such command need to be called only after data loaded in grid, it will not have any result if was called before data loading.