Hello,1. changing the value in FirstName field of the first row the following message is written to the console:“Update event raised: Changed field FirstName, Row key 1”.
I have a question about DevExtreme Grid’s events in Edit mode.
In our program we need to perform some logic actions on server side if the current selected row is changed, and the data of previous selected row was changed also, i.e. when the current selected row is changed, I need to process the modified data of a previous selected row on the server side. For this purpose, I defined a handler function (onFocusedRowChanged) on FocusedRowChanged event and the handler function (onUpdated) on Updated event.
onUpdated function saves the modified data of the current selected row in my custom object on Client side.
onFocusedRowChanged function should send the data to server side when the current selected row is changed.
The problem is that the FocusedRowChanged event is raised before Updated event, so the changes are not saved in my custom object and as result are not sent to server side.
For example, see https://jsfiddle.net/c4sqybed/12/
In the example:
2. Changing the selected row from first to second the following message is written to the console:
“FocusedRowChanged event raised: Row index 1”
The Example shows that the FocusedRowChanged event raised twice (before and after Update event raised).
My question is why the FocusedRowChanged event raised before Update event and / or what event you recommend me to use to achieve my purpose?
Show all comments