cri1258
19 Mar 2009, 8:52 AM
I need to be able to hide and unhide columns in my TreeTable programmatically. I have a list of columns that I want to hide or unhide and I run the follow code against them:
protected void setTaskColumnsHidden(boolean hide) {
for (TreeTableColumn column : individualTaskColumns) {
column.setHidden(hide);
}
}When I run this code with hide=true, the visible columns are unaffected. If I resize my browser, the changes then take effect. If I then run the code with hide=false, again there is no visible change. If I resize my browser now, the old columns appear but the column headings are missing. I'm thinking that after I run my code I need to run some method to get the changes to properly take effect but I don't know what that method might be.
Any help would be immensely appreciated. I've worked on this little feature for about 8 hours now to no avail. Thanks
Chuck
protected void setTaskColumnsHidden(boolean hide) {
for (TreeTableColumn column : individualTaskColumns) {
column.setHidden(hide);
}
}When I run this code with hide=true, the visible columns are unaffected. If I resize my browser, the changes then take effect. If I then run the code with hide=false, again there is no visible change. If I resize my browser now, the old columns appear but the column headings are missing. I'm thinking that after I run my code I need to run some method to get the changes to properly take effect but I don't know what that method might be.
Any help would be immensely appreciated. I've worked on this little feature for about 8 hours now to no avail. Thanks
Chuck