Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mike on Dec 10, 2008 07:56
open dhtmlx forum
Multiline headers from HTML

Hi,
How to initialize from HTML table wich first line have cells with colspan and/or rowspan html attributes?
Thanks
PS:excuse my english
Answer posted by Support on Dec 10, 2008 08:50
While init from HTML table it not possible to reflect colr|row spans in table header. 
If you need to init grid with such structure you need to use javascript configuration instead of HTML one. 
Answer posted by Mike on Dec 10, 2008 10:18

Ok. Thanks.
But can you show me with this simple table:

<table  id="mytable" border="1">
<thead>
<tr>
<th colspan="4">Header1</th>
<th colspan="2">Header2</th>
<th>Header3</th>
</tr>
<tr>
  <th>a</th>
  <th>b</th>
  <th>c</th>
  <th>d</th>
  <th>e</th>
  <th>f</th>
  <th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="4">Cell 11</td>
<td colspan="2">Cell 12</td>
<td>Cell 13</td>
</tr>
<tr>
<td colspan="4">Cell 21</td>
<td colspan="2">Cell 22</td>
<td>Cell 23</td>
</tr>
<tr>
<td colspan="4">Cell 31</td>
<td colspan="2">Cell 32</td>
<td>Cell 33</td>
</tr>
</tbody>
</table>

because i not succed to do it.
Thanks
PS:excuse my english

 

Answer posted by Support on Dec 11, 2008 03:18
Updated dhtmlxgrid_start.js and sample of usage sent by email.