saveSortingToCookie

saves the sorting order to cookie

void saveSortingToCookie(string name,string cookie_param);

Parameters

namestringoptional, cookie name
cookie_paramstringadditional parameters added to cookie

Available only in PRO Edition

Example

myGrid.attachEvent("onAfterSorting", function(index,type,direction){
    //minimal parameters set
    myGrid.saveSortingToCookie();
    //maximal parameters set
    myGrid.saveSortingToCookie("some_name","expires=Fri, 31-Dec-2010 23:59:59 GMT");
});

Back to top