View Full Version : [CLOSED] CellEditing plugin

Sep 13, 2012, 10:42 AM
In version 1.x, the gridpanel cell editing plugin, by default, made cells automatically editable. Now, you have to click the cell to edit in version 2.0/2.1.

Is there any fix for this as I want the editor of the cell to show automatically, not by having to click it.
Thanks in advance,

Sep 13, 2012, 11:00 AM
Found it...

Use "ComponentColumn".

However, I've now found that the listener for edit doesn't fire inside the cellEditing tag anymore? Any reason for this?

<ext:CellEditing runat="server">
<Edit Handler="if(e.field == 'ReceiptOnly') { CheckReceiptOnly(e.rowIdx, e.record.data, e.grid.store, e.originalValue); };
if(e.field == 'ReceiptedAmount') { CheckReceiptedAmount(e.rowIdx, e.record.data, e.grid.store, e.originalValue); }" />

Sep 13, 2012, 3:06 PM

Well, there is no relation between ComponentColumn and Editing plugin.

Please listen respective events of the ComponentColumn Component.

However, we will think about editing events in this case. Thank you for pointing it out.

Sep 13, 2012, 3:26 PM
Yes, I've listened to the blur event of the numberfield in the component, and then found the record and store in the field object.

I agree it would be nice for the componentcolumn to work similarly and send through the "e.rowIdx", "e.record.data", "e.grid.store", "e.originalValue" on the edit event.

Otherwise you have to do this on blur which is slight long winded:

function MyBlurComponentColumnCell(field) {
var val = field.getValue();
var record = field.record.data;
var store = field.record.store;


Sep 13, 2012, 3:47 PM
Yes, it would be good. Thank you for the suggestion.

Sep 13, 2012, 8:06 PM
We have added the Edit and ValidateEdit events for ComponentColumn.

Thank you again for the suggestion.