Closed jasvazquez closed 13 years ago
The modelChanged callback is called when the model has been updated out of your control, i.e. when the table has been edited by the user.
If you call SetValueAt, your are the initiator of the change, and it is up to you to do whatever is needed. Calling modelChanged may not always be the thing to do. But if you want to call modelChanged, it can be done like this:
var previousValue = editablegrid.setValueAt(rowIndex, columnIndex, newValue);
editablegrid.modelChanged(rowIndex, columnIndex, previousValue, newValue, editablegrid.getRow(rowIndex));
Thanks for the explanation.
Thanks, it works well :)
Just wondering why actually modelChange is not triggered when we use setValueAt() method :)