PDA

View Full Version : onVisible changed event?



Hippje
10 Nov 2010, 1:14 AM
I've made a GridPanel with columns in it and now I want to redirect to an other page if the user clicks on the "columnsvisible" checkbox.
Is there an event for that?

http://h3s.eu/extjs.png

Hippje

Condor
10 Nov 2010, 2:37 AM
Stange requirement...

You can use the 'hiddenchange' event of the columnmodel for this.

Screamy
10 Nov 2010, 2:39 AM
Ext.grid.ColumnModel has event:



hiddenchange (http://webserver/ext/docs/source/ColumnModel.html#event-Ext.grid.ColumnModel-hiddenchange) : ( ColumnModel this, Number columnIndex, Boolean hidden )
Fires when a column is hidden or "unhidden".
I think that will do what you want.

Thx.

Hippje
10 Nov 2010, 2:58 AM
k thx :)

Hip