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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -