<1> function: modify one column and then automatically modify another column.
Directly use the Afteredit event. After a cell is edited, The Afteredit event is triggered. You can use this event processing function to edit the cell information.
VaR gridpanel = new Ext. grid. editorgridpanel ({ID: "ID", store: mystore, height: 350, clickstoedit: 1, CM: columnmodel, SM: selectionmodel, viewconfig: {forcefit: True, enablerowbody: false, showpreview: false}, listeners: {Afteredit: function (VAL) {// The sequence Ext. UX. toast. MSG ("prompt message", "column number:" + val. column + "row number:" + val. row); Ext. UX. toast. MSG ("prompt message", "field name:" + val. field + "Original Value:" + val. originalvalue + "Current Value:" + val. value); // use the set method to modify the value, and use the get method to obtain the value. // The following function is quantityleft auto-minus 1val. record. set ("quantityleft", Val. record. get ("quantityleft")-(Val. value-Val. originalvalue ));}}});
: