I have following order in my implementation:
Automatic saving to cookie. The order of calling the related methods
mygrid = new dhtmlXGridObject(‘gridbox’);
…
mygrid.init(); // firstly, initialize the grid
mygrid.enableHeaderMenu();
mygrid.loadOrderFromCookie(); // then restore the required data
mygrid.loadSizeFromCookie();
mygrid.loadHiddenColumnsFromCookie();
mygrid.enableAutoSizeSaving(); // enable saving cookies
mygrid.enableOrderSaving();
mygrid.enableAutoHiddenColumnsSaving();
mygrid.load(“mygrid.json”, “json”); // load data to the grid
I wanted to add following lines to the above code:
mygrid.setColumnHidden(0,true);// Hide 0th column by default
mygrid.setColumnHidden(7,true);// Hide 7th column by default
Where should I add the setColumnHidden lines so that they do not interfere with each other and load correctly?
Is there any compatibility issue?