Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Resizing when headers are hidden
posted

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?

Parents Reply Children