grid - Hide column not working in ExtJs GridColumn -


in extjs have gridpanel.

i want hide of columns of gridpanel, using hidden="true" , working fine.

the problem is, when click on grid menu, there option called 'columns'. when mouseover 'columns' can check/uncheck columns want show/hide.

i want display hidden columns in list(unchecked) user can check them , manually display on grid.

i tried setting hideable="true" still these columns not displying in 'columns' list.

please suggest solution

the configuration option hidden:true (lowercase), example:

            ,columns:[{                  text:'company'                 ,dataindex:'company'                 ,flex:10             },{                  text:'price'                 ,xtype:'numbercolumn'                 ,dataindex:'price'                 ,align:'right'                 ,width:80             },{                  text:'last updated'                 ,xtype:'datecolumn'                 ,dataindex:'lastchange'                 ,align:'right'                 ,width:135                 ,hidden:true             },{                  text:'industry'                 ,dataindex:'industry'                 ,flex:4             }] // eo columns 

in case, column last updated hidden, still appears in column menu. if still have troubles, make showcase @ https://fiddle.sencha.com


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -