Check documentation for the latest version of dhtmlxSuite saveOrderToCookie DHTMLX Docs

saveOrderToCookie

saves the columns' order to cookie

void saveOrderToCookie(string name,string cookie_param);
namestringoptional, cookie name
cookie_paramstringadditional parameters added to cookie

Available only in PRO Edition

Example

myTreeGrid.attachEvent("onAfterCMove", function(cInd,posInd){
    //minimal parameters set
    myTreeGrid.saveOrderToCookie();
    //maximal parameters set
    myTreeGrid.saveOrderToCookie("some_name","expires=Fri, 31-Dec-2010 23:59:59 GMT");
});

Back to top