Multiple Column Sort


Hi



I had asked a question about multiple column sort. You had replied with a sample pro_sort.html. I tested this and found that it was working. But I am still having a problem with this. I have to sort the grid on loading of the grid in multiple columns after that only single column sort should work. So for sorting on  load, I am calling the sortrows method. I want to know how to make this sortrows method to call the custom sorting method I have written. It seems to call a default method in the Grid Code and not my custom method.Please help me with this problem.



Regards,



dan



 



 



 



 

You can define functions which grid will use while sorting rows. This technique is demonstrated in the sample pro_sort.html. If you have a function which you need grid to use for sorting you need to specify its name in setColSorting(…) method for the column you need to to sort.