PDA

View Full Version : Creating multiple check columns within grid panel



robhyx
29 Feb 2012, 11:45 AM
How would I go about adding two (or potentially more) check box columns into an Ext.grid.Panel each with their own selection models? I am able to this with one fairly easily:



var layerGrid = Ext.create('Ext.grid.Panel', {...
selType: 'checkboxmodel',
selModel: sm, ...
Where


var sm = Ext.create('Ext.selection.CheckboxModel', {
mode: 'MULTI',
listeners: { ...
But as you can see the selection model is now tied to the grid and I have no control over functionality of an individual column.
Thanks in advance!

FYI, I also asked this question here: http://stackoverflow.com/questions/9504936/ext-js-4-0-7-multiple-check-columns-within-grid-panel

mitchellsimoens
29 Feb 2012, 12:09 PM
There is a Ext.ux.CheckColumn extension that comes with Ext JS 4 in the examples folder. For an example: http://docs.sencha.com/ext-js/4-0/#!/example/grid/cell-editing.html