Jun 25, 2012, 1:32 PM
[CLOSED] GridPanel and CheckBoxSelectionModel
Hi!
I'm using in gridPanel two plugins...
Ext.selection.CheckboxModel and cellediting...
I wish when I edit one cell in grid, I select/unselect (depends of value) the row...
How I can do this?
The follow event is fired after edit cell:
I'm using in gridPanel two plugins...
Ext.selection.CheckboxModel and cellediting...
I wish when I edit one cell in grid, I select/unselect (depends of value) the row...
How I can do this?
The follow event is fired after edit cell:
afterEdit: function (editor, e) {
/*
Properties of 'e' include:
e.grid - This grid
e.record - The record being edited
e.field - The field name being edited
e.value - The value being set
e.originalValue - The original value for the field, before the edit.
e.row - The grid row index
e.column - The grid column index
*/
if (e.record.data['QUANTIDADEDIARIA'] < 0) {
e.record.data['QUANTIDADEDIARIA'] = 0;
}
// Call DirectMethod
//CompanyX.AfterEdit(e.record.data.ID, e.field, e.originalValue, e.value, e.record.data);
//depois de editar, vou atualizar todos o summary
this.updateSummary();
}
Last edited by Daniil; Jun 25, 2012 at 3:27 PM.
Reason: [CLOSED]