CheckboxSelectionModel in ExtJS grid
I’ve tried to use CheckboxSelectionModel on grid, and there are no examples in documents for. It’s not clear in documentation. Ok, so you should create CheckboxSelectionModel object before it’s passing to grid as selModel, because you should specify it in columns config property. So there is example by the steps.
- Create CheckboxSelectionModel:
| var sm = new Ext.grid.CheckboxSelectionModel(); |
- Include created object in columns list:
| columns:[ sm,
] |
- Provide selectionModel object as current selection model for grid. You should provide selModel property in config options:
| selMode: sm |
Result:

Thank you for posting this. I was stumped by CheckboxSelectionModel but it turns out it should be added to the column definition too.
[...] for Andriy Mykhaylyuk for the [...]
Thank you very much. Helped my a lot.