DataProcess Example for mange a POST

Hi,
I am new and I an valuting DHTMLX (4.1)

I write a little project where use grid and dataprocess (REST mode), I populate the grid, I edit a row, post update to server and callback {status:ok} to comunicate client that update is work fine
All work!

But, for example,if validate server side fail the update can I comunicate to client for manage an undo of record? what callback status/information i must pass to dataprocess?
thanks

Client side doesn’t have an auto-undo functionality.

You can send some custom json response { action:“undo” } for example and use onAfterUpdate event of dataprocessor to check response and run some code to undo operation.