How to replicate the column section option into a button in a grid's topbar?
In Extjs 4 every column has an option for selecting the visible columns, like this:
How can I replicate the same functionality into th开发者_StackOverflow社区e grid's topbar?
Thank you.
Of course you can. Just see the source of Ext.grid.header.Container #getMenu #getMenuItems
- http://docs.sencha.com/ext-js/4-0/#/api/Ext.grid.header.Container
- http://docs.sencha.com/ext-js/4-0/source/Container2.html#Ext-grid-header-Container
精彩评论