Hi,
Resizing doesn't work when headers are hidden. My situation is that I have a hierarchical grid where the parent and child columns are the same. I hide the child's headers and resize the child columns by handling the "resized" event. If the child headers are visible, it works but if they are not resizing doesn't work.
The error I get is:
Cannot read property 'offsetWidth' of undefined
Looking at infragistics.ui.grid.resizing.js, the culprit is this code:
if(this.grid._isMultiColumnGrid){ headers=$(this.grid._headerCells); headerWidth=$(headers[columnIndex])[0].offsetWidth}
If the headers are hidden, this.grid._headerCells returns an empty array. Is there a workaround for this?
Or better yet is there a way to keep parent and child column sizes in sync?
HI,
If this part of the code throws an error you probably use MultiColumnHeaders - is it possible to send us a sampe(and if possible dataSource you use).
We can fix it for the next Service Release if there is indeed a bug.
Thanks,
Miro
Yes, I'm using MultiColumnHeaders. Here's a sample of resizing that works when showHeader for the child grid is true and doesn't work when showHeader for the child is false. The same issue happens with column moving.