View Full Version : Way to use both cell edit and row edit on grid?

2 Jul 2012, 4:14 AM
Is there any way to use both cellEditing and rowEditing plugin to use both feature at a time. For example on single click cell editing should work and for dbl click row editing should work. Trying somethng like below but doesn't work:

selType: 'cellmodel',
plugins: [
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
selType: 'rowmodel',
plugins: [
Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit: 2

Please help on this.

2 Jul 2012, 7:32 AM
Correct, the code you posted would not work. Having two "selType" attributes on a configuration object creates a name collision, so one of them is simply discarded by your JavaScript runtime.

In any event, ExtJS doesn't allow for multiple editing types on grids - at least not out of the box.

You could do it in theory, but it's going to take a lot of custom coding...

10 Jul 2012, 1:46 PM
Honestly, I have no idea why anyone would ever be able to do this.