Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by KRajesh on Mar 12, 2008 03:39
open dhtmlx forum
grid

How to set headers dynamically for a grid

i have use this headers in jsp page and i want set headers dynamically from xml file or by other way
Answer posted by Support on Mar 12, 2008 10:03
You can configure headers as part of grid configuration in XML
    http://dhtmlx.com/docs/products/dhtmlxGrid/samples/initialization_loading/grid_config_xml.html?un=1205342220000

-------gridH.xml-------
    <
rows>
        <
head>
            <
column width="50" type="dyn" align="right" color="white" sort="str">Sales</column>
            ...
             <afterInit>
                <call command="attachHeader"><param>A,B,C,D</param></call>          <!--  second line of header, if necessary  -->
             </afterInit>