Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Brad Rix on Feb 19, 2008 06:42
open dhtmlx forum
dhtmlgrid - multiple rows in header in XML and rowspan and colspan in header in XML

Thank you for your earlier response on rowspan and colspan in header using the java script calls. How can we set rowspan and colspan in headers in the XML?

Using Java script calls, I can use:

grid.setHeader("A,B,C");
grid.attachHeader("A,#rspan,C");

In the regular part of the table, I can use the rowspan and colspan attributes.

What is the syntax of using rowspan and colspan within the <head>

I looked at the documentation on the <column>, but was unable to determine how to format multiple row header and rowspan/colspan in the header in the XML.

<rows>
<head>
<column>....... </column>
<column>.......</column>
</head>
</rows>

Thanks for your help.
Answer posted by Support on Feb 19, 2008 07:52
Actually it is nearly the same as for JS API

    grid.setHeader("A,B,C");
    grid.attachHeader("A,#rspan,C");

in case of loading from XML it will be

<rows>
    <head>
       <column>A</column>
       <column>B</column>
       <column>C</column>
       <afterInit>
          <call command="attachHeader"><param>A,#rspan,C</param></call>
       </afterInit>
    </head>
</rows>