Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Andres Felipe Gomez M on Jun 18, 2008 07:37
open dhtmlx forum
Problems with colspan

Hello
First we're using dhtmlxGrid Professional with the dhtmlxTreeGrid extension.

I have about 30 data columns and 6 frozen columns, i am using a tree to group parent information and i want the parent information use the 6 frozen columns for this i use colspan but when i see the last data columns these appears without styles and the column separators too.

What can we do to fix this problem?

We're using dhtmlxGrid_pro_v15_80319 and dhtmlxTreeGrid_ext_80319

Thank you.
Answer posted by Support on Jun 18, 2008 08:44
The problem most probably related to used XML data.
When you are using colspans in XML - you still need to provide cell tags for elements which included in colspan

Normal row for 6 columns
<row id='some'>
<cell>1</cell><cell>2</cell><cell>3</cell><cell>4</cell><cell>5</cell><cell>6</cell>
</row>

The same row with colspan
<row id='some'>
<cell colspan="3">1</cell><cell></cell><cell></cell><cell>4</cell><cell>5</cell><cell>6</cell>
</row>
here , we are combining first 3 column, but still provide six cell tags, the second and third tag will not be rendered, because they are part of colspan, but still need to be provided

If you are missed such "spacer" cell tags in your XML, for spanned rows - the grid may not render last cell in rows, which will look as empty borderless space ( same as in your case )