简体   繁体   中英

ExtJS 4 CheckboxModel and grid columns defaults

I have a grid with selType: 'checkboxmodel' and defaults config for its columns, ie hidden: true , thus my checkbox column is hidden aswell. Ofcourse I can move defaults properties to columns items and all work just fine but is there way to setup hidden: false for checkbox column?

Simple fiddle to illustrate issue

You can override the getHeaderConfig method of CheckboxModel and add hidden: false :

Working example: https://fiddle.sencha.com/#fiddle/13rk

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM