DHTMLX Docs & Samples Explorer

Cookies Manipulation

To interact with the cookies, the user should include dhtmlxgrid_ssc.js into the page. The user can apply the following methods to work with cookies in case of the TreeGrid:

          treegrid.saveOpenStates(name,cookie_param); // store open state of TreeGrid in cookies
          treegrid.loadOpenStates(name,cookie_param); // load open state of TreeGrid from cookies

The parameters the user should indicate are:

  • name - optional, cookie name;
  • cookie_param - additional parameters added to cookie.