Restoring clean values on server update error

edited July 2014 in Technical questions

I have a form bound to datatable, which processes 'save' action on server-side:
How can I restore previous value on server error?


  • There is no any integrated solution.
    You can use some event, that occurs before pushing data from form to the datatable, to save the original data ( grid.getItem(id) ) and restore the value after receiving the "error"response.

  • Thank you, maksim. That is the way I did it. I just hoped that dirty values would become clean after server's confirmation. But no luck, I have to save clean values of my own.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion