Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by KK on Apr 07, 2008 10:30
open dhtmlx forum
Adding Dynamically Columns Header on the basis of the XML

Hi ,

how can I can header dynamically on the basis of the xml.
Say the first row of the xml contains the headers name and count. Is there any way right now to do this.

thanks & regards
kk
Answer posted by Support on Apr 08, 2008 01:37
You can create initial header structure from XML
    http://dhtmlx.com/docs/products/dhtmlxGrid/samples/initialization_loading/grid_config_xml.html?un=1207644573000
There is no any special way to add|delete column dynamically from XML, but you can use common afterInit/call@command

<rows>
    <head>
       <afterInit><call command="insertColumn"><param>1</param><param>1</param><param>Label</param><param>ro</param><param>150</param></call></afterInit>
    </head>
    ....