PDA

View Full Version : CellEditing plugin and CheckboxModel



devnullable
6 Mar 2012, 9:11 PM
Is it somehow possible to get both features to grid, cell editing and checkbox selection model?

Use case is as follows. User modifies 1..N rows, saves and then want to do some batch action, like get PDFs, of some rows(not nessessarily same rows she modified before).

chramer
6 Mar 2012, 11:08 PM
why would it be a problem ?


plugins: [
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 2
})
],
selModel : Ext.create('Ext.selection.CheckboxModel')


my sample : http://jsfiddle.net/serju/JrcAK/2/

devnullable
7 Mar 2012, 2:36 AM
why would it be a problem ?You are right, there's no problem. For some reason I was thinking that CellEditing plugin needs grid to use Ext.selection.CellModel, which is not true.

Thank you!