DHTMLX Docs & Samples Explorer

saveOrderToCookie(name,cookie_param)

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

saves column order to cookie

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

See also: saveSortingToCookie, saveSizeToCookie, saveHiddenColumnsToCookie, saveOpenStates, enableOrderSaving