gridview - how to add checkbox column to Extjs Grid -
i have extjs grid. want know how add checkbox extjs grid column.
in datatable i'll value column 'status'. may br either true/false. based on should show checkbox column checked / unchecked.
have @ sample here. uses plugin called checkboxcolumn (you have view source , find js file.
some example usage plugin's file...
var checkcolumn = new ext.grid.checkcolumn({ header: 'indoor?', dataindex: 'indoor', id: 'check', width: 55 }); // add column column model var cm = new ext.grid.columnmodel([{ header: 'foo', ... }, checkcolumn ]); // create grid var grid = new ext.grid.editorgridpanel({ ... cm: cm, plugins: [checkcolumn], // include plugin ... });
Comments
Post a Comment