DHTMLX Docs & Samples Explorer

saveSizeToCookie(name,cookie_param)

Required library edition: This method requires Professional Edition of the DHTMLX library
Required library file: dhtmlxgrid_ssc.js

save grid layout to cookie

  • name - optional, cookie name
  • cookie_param - additional parameters added to cookie
mygrid.attachEvent("onResizeEnd", function(obj){
          //minimal parameters set
          mygrid.saveSizeToCookie();
          //maximal parameters set
          mygrid.saveSizeToCookie("some_name","expires=Fri, 31-Dec-2010 23:59:59 GMT");
   });

See also: enableAutoSizeSaving