This is a migrated thread and some comments may be shown as answers.

[Solved] showColumn/hideColumn not hiding header

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dan
Top achievements
Rank 1
Dan asked on 18 Feb 2013, 08:13 PM
When I call the hideColumn() method what's happening is that the data in the column is being hidden and all the data to the right is sliding over to take its place. Meaning if I call hideColumn on column B, all the data for column C is now under column B but the column B header is still visible. The weird part is that if I right click on the column headers to get the context menu, column B is now unchecked like I'd expect but the header is still showing. Any solution for this?

Dan

1 Answer, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 1
answered on 27 Feb 2013, 12:56 PM
So it turns out adding a timeout makes it work.

setTimeout(function() {  
                            parentGrid.hideColumn(val.member);
                        }, 250);

Why is this? Is there some asynchronous call going on in the background when hideColumn is called?
Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Dan
Top achievements
Rank 1
Share this question
or