Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Dec 10, 2007 06:59
open dhtmlx forum
clear split mode

How can I rebuild a grid that is in split mode?

I want to clear the table and reload all column information from xml (with a possible new splitAt defined in the afterInit section). Using grid.clearAll(true) erases all rows, but keeps the (split) header, which causes strange behaviour when loading new table headers from xml.

I even tried to reset it with
grid = new dhtmlXGridObject()
...
before loading the new xml, but that does not get rid of the split (only the columns before the former split will be updated)
Answer posted by Support on Dec 10, 2007 09:50
To fully remove split - you need to reinitilize grid.

mygrid.destructor(); // remove all traces of previous grid instance
mygrid = new ...
... all necessary init ....