GridViewScroll icon indicating copy to clipboard operation
GridViewScroll copied to clipboard

Colspan in header generate error

Open michbudz opened this issue 8 years ago • 2 comments

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?

michbudz avatar Feb 16 '18 11:02 michbudz

Your cell merge is too complicated, I think there should be no way to use GridViewScroll.

twlikol avatar Feb 16 '18 16:02 twlikol

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?

RealDekkia avatar May 27 '20 14:05 RealDekkia