Author Topic: How can I invalidate a row update?  (Read 2283 times)

jeremy

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 14
    • View Profile
How can I invalidate a row update?
« on: September 23, 2016, 10:50:08 pm »
I'm adding a row to my table remotely but lets say it fails validation or some other check and I'm doing a delete/update/create operation. How can I instruct the grid NOT to show the row as modified.
« Last Edit: September 23, 2016, 11:07:15 pm by jeremy »

jeremy

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: How can I invalidate a row update?
« Reply #1 on: September 23, 2016, 11:09:20 pm »
Only way I can think of is with refreshDataAndView but the row is deleted then added back in with the refresh.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How can I invalidate a row update?
« Reply #2 on: September 23, 2016, 11:36:25 pm »
If validation fails locally, grid won't allow that value.

If something fails on the remote server, you can rollback.

http://paramquery.com/pro/api#method-rollback
« Last Edit: September 23, 2016, 11:38:17 pm by paramquery »