PDA

View Full Version : Columns off by default



elnino
5 Jun 2007, 8:25 AM
I've got a grid with a lot of columns. If I want some off by default, what's the best way?

I tried the 'hidden' property in my ColumnModel, which seems to do what I want- the column is not visible in the grid and is shown as "off" in the column list- but then I can't toggle the column on.

Thanks

tryanDLS
5 Jun 2007, 10:35 AM
Look at the array grid example. If you add hidden:true to one the cols, it's hidden when you display the grid. If you right click the header and go to the context menu, it allows you to select it to redisplay.