nbuesing
10 Feb 2012, 1:08 PM
I create a grid and attempt to hide a column via a schedule finally prior to being rendered. The column will correctly hide, but the header itself doesn't hide.
This is the code that does the hiding.
Scheduler.get().scheduleFinally(new ScheduledCommand() {
@Override
public void execute() {
grid.getColumnModel().findColumnConfig("value").setHidden(true);
}
});
Here is how the screen looks (value column is hidden, but value header exists).
31614
Here is zipped up source to demostrate the issue.
31613
On a secondary note, (and example code has some comments in regards to this).
The Grid is added to a VerticalLayoutContainer with VerticalLayoutData(-1,-1) This means that the grid should not resize if the parent is resized (if I understand this correctly). If the header text is present in the grid, then it behaves that way. However, if the header test is not set, then the table (header) will actually resize.
This is not a major issue, but may help show some of the resizing issues I'm currently experiencing, that I do not yet know if it is user error or a defect.
Thanks
This is the code that does the hiding.
Scheduler.get().scheduleFinally(new ScheduledCommand() {
@Override
public void execute() {
grid.getColumnModel().findColumnConfig("value").setHidden(true);
}
});
Here is how the screen looks (value column is hidden, but value header exists).
31614
Here is zipped up source to demostrate the issue.
31613
On a secondary note, (and example code has some comments in regards to this).
The Grid is added to a VerticalLayoutContainer with VerticalLayoutData(-1,-1) This means that the grid should not resize if the parent is resized (if I understand this correctly). If the header text is present in the grid, then it behaves that way. However, if the header test is not set, then the table (header) will actually resize.
This is not a major issue, but may help show some of the resizing issues I'm currently experiencing, that I do not yet know if it is user error or a defect.
Thanks