Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colspan in header generate error #50

Open
michbudz opened this issue Feb 16, 2018 · 2 comments
Open

Colspan in header generate error #50

michbudz opened this issue Feb 16, 2018 · 2 comments

Comments

@michbudz
Copy link

michbudz commented Feb 16, 2018

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?

@twlikol
Copy link
Owner

twlikol commented Feb 16, 2018

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

@RealDekkia
Copy link

RealDekkia commented May 27, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants