Check documentation for the latest version 6.0 of dhtmlxSuite enableSortingSaving DHTMLX Docs

enableSortingSaving

enables automatic saving of the sorting state to cookie

void enableSortingSaving(string name,string cookie_param);

Parameters

namestringoptional, cookie name
cookie_paramstringadditional parameters added to cookie

Available only in PRO Edition

Example

//minimal parameters set
myGrid.enableSortingSaving();
//maximal parameters set
myGrid.enableSortingSaving("some_name","expires=Fri, 31-Dec-2010 23:59:59 GMT");

Back to top