DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### saveHiddenColumnsToCookie(name,cookie_param)

Required library edition:
Required library file: dhtmlxgrid_ssc.js

save hidden columns to cookie

- name - optional, cookie name
- cookie_param - additional parameters added to cookie

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

See also: enableAutoHiddenColumnsSaving