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?
That is actually what I'm doing but am running into a similar problem when combining resizing and moving. Once I've expanded a row and moved a column, the resizing doesn't work anymore.
Hello,
I have investigated your issue and I have asked our engineering staff to examine this further.To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 157949.The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.I will leave this case open and update you with this information after the review.You can also continue to send updates to this case at any time.You can view the status of all development issues connected to this case from the "Development Issues" tab, when viewing this case on the "My Support Requests" page of our website.
Please see my workaround - in the forum post.
Thanks,
Miro
HI,
I have logged a bug in our internal system and this bug will be fixed probably for the next Service Release. So for now I can propose you a workaround. The idea is to set showHeaders to true(for the child layout) and at the same time on rowExpanding you can hide thead of all child bands(or the child bands you want). Please see the attached sample.
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.
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.