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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -