dhtmlxGrid sorting with cookies

Hello,

We are using a dhtmlxGrid with smart rendering in server side.
Now we want to implement grid persistence saving column order, size and sorting into a cookie.

After first trys order and size is working ok without problems (all changes are done in client side), but sorting is not working ok due all data is in server and client only has part of it.

Function like loadSortingFromCookie just work for client side. How should be done in this case this kind of loading?
Is there another function or different method to sort all data from server side?

Thanks for your help.

loadSortingFromCookie() method require all rows to be loaded on client side and it’s incompatible with dynamic loading.
In case of dynamic loading you can use "onAfterSorting " event to save information which column has been sorting. When you refresh the page you load rows in necessary order using saved information.
Please check this sample dhtmlx.com/docs/products/dht … 50000.html