Check documentation for the latest version of dhtmlxSuite saveOpenStates DHTMLX Docs

saveOpenStates

stores open state of TreeGrid in cookie

void saveOpenStates(string name);
namestringoptional, cookie name

Available only in PRO Edition

Example

myTreeGrid.attachEvent("onOpenEnd", function(index,state){
    //minimal parameters set
    myTreeGrid.saveOpenStates();
    //maximal parameters set
    myTreeGrid.saveOpenStates("some_name","expires=Fri, 31-Dec-2010 23:59:59 GMT");
});

Back to top