I have a button on my page which adds a column at specified location on a existing grid. I would like to add a #cspan when a new column is added along with the added column can this be done?
Unfortunately your issue is not clear.
You may add a colspan using setColSpan() method:
docs.dhtmlx.com/doku.php?id=dhtm … setcolspan
Thanks for the reply that was helpful but my problem still remains unsolved. I am creating dynamic grid so my columns header row is created in head tab and the setcolspan required row id of the columns so how can I create header with rows in head. Below is my grid xml format:Column 0 #cspan Column 1 #cspan Value for Cell 0 Value for Cell 00 Value for Cell 1 Value for Cell 11 Value for Cell 0 Value for Cell 00 Value for Cell 1 Value for Cell 11
Now I have a button Add column so when this is clicked I would like to add 2 more columns with cspan.
Unfortunately it’s not available to create colspans in the header dynamically. You will have to rebuild your grid with a new structure.