PDA

View Full Version : GXT Grid



sathishb
6 Dec 2010, 10:57 AM
Hi,

I would like to know what's the method I can use in the grid to see "what are all the columns user made hidden/unhidden"?

To Elaborate:
My requirement is -- I have totally 10 columns, out of which by default I am showing 5 columns. If the user is selecting the 6th column (which is hidden) then it become unhidden. Then, the next time the user logs in then he should see the sixth column. How do I track what are the hidden columns user made unhidden? (or) What are the columns which are currently displayed in the grid?

I appreciate your help!

Thanks,
Sathish.

sven
6 Dec 2010, 11:00 AM
. How do I track what are the hidden columns user made unhidden?
The ColumnModel fires a HiddenChange event everytime it gets shown/hidden.


What are the columns which are currently displayed in the grid?
OVer the ColumnModel you can get all the ColumnConfigs and check if they are hidden or visible (there is a getter for it).