sortRows() with checkboxes issue


I am using the following command to sort checkboxes in a grid:
dataGrid.sortRows(0, “des”);

This works fine when the page loads, but when i call the same function after i check/uncheck a box then the sorting doesn’t work.

Do i have to reload the XML first then sort?



You need not reload a data to apply the sorting. Basically you can call sortRows in any moment after data loading and it must be applied correctly.