GridViewScroll
GridViewScroll copied to clipboard
Colspan in header generate error
Hi, Could you take a look at my simple example? I've colspan in header which generate error: gridItemCell is undefined. Example:
var gridViewScroll = null;
window.onload = function () {
gridViewScroll = new GridViewScroll({
elementID: "gvMain",
widtdh: 400,
height: 200,
freezeColumn: true,
freezeColumnCssClass: "GridViewScrollItemFreeze",
freezeHeaderRowCount: 1,
freezeColumnCount: 2
});
gridViewScroll.enhance();
}
<table id="gvMain">
<tbody>
<tr class="GridViewScrollHeader">
<td colspan="2">
Description
</td>
<td >
Values
</td>
</tr>
<tr class="GridViewScrollItem">
<td rowspan="2">
desc value
</td>
<td>
desc value 1
</td>
<td>
value 1
</td>
</tr>
<tr class="GridViewScrollItem">
<td>
desc value 2
</td>
<td>
value 2
</td>
</tr>
</tbody>
</table>
is colspan properly supported?
Your cell merge is too complicated, I think there should be no way to use GridViewScroll.
Your cell merge is too complicated, I think there should be no way to use GridViewScroll.
I have the same problem as OP. How is this too complicated? It looks simpler than the gif in the readme-file. (https://github.com/twlikol/GridViewScroll/blob/master/test/HeaderMergeColumn.html)
What would one need to do, in order to make it less complicated?