This is a pure Extjs issue but I can not find the answer with web search. I'm using cellEditing and grid row has an action column that will set a cell's value from another column on record in the action column handler. I then commit to the store. All that is working fine but I can not figure out how to fire the Edit event so listener will post to server and do some additional processing.
I was hoping the commit method would trigger but it does not. I tried a variety of other things (now commented out) and they either did not work or threw a syntax error getting proper reference to plugin. Thanks in advance for any help.
this.on({
scope: this,
edit: function(editor, e)
{ e.record.commit();
var recs = this.getStore().getRange();
this.fireEvent('linetot',recs);
handler: function(grid, rowIndex)
{ var rec = grid.getStore().getAt(rowIndex);
//grid.CellEditing().startEditByPosition({row: rowIndex,column: 3});
rec.set('MPPAYAMT', rec.get('MPOPNAMT'));
rec.commit();
//var recs = this.getStore().getRange();
//this.fireEvent('edit'); }
I was hoping the commit method would trigger but it does not. I tried a variety of other things (now commented out) and they either did not work or threw a syntax error getting proper reference to plugin. Thanks in advance for any help.
this.on({
scope: this,
edit: function(editor, e)
{ e.record.commit();
var recs = this.getStore().getRange();
this.fireEvent('linetot',recs);
handler: function(grid, rowIndex)
{ var rec = grid.getStore().getAt(rowIndex);
//grid.CellEditing().startEditByPosition({row: rowIndex,column: 3});
rec.set('MPPAYAMT', rec.get('MPOPNAMT'));
rec.commit();
//var recs = this.getStore().getRange();
//this.fireEvent('edit'); }
Comment