I am trying out a listgrid with a boolean-column. I want to auto-save the row when the user clicks the field. This works fine, i get the server call when the user clicks in the listrgid, however i am trying to get a working solution in the case where something bad happens on the server.
The problem is that if something goes wrong, my default RPC error handler shows an error, but the checkbox still has the "new" value. I would like the value to revert to the "before" value, since it didn't change on the server.
Preferrably, that would just happen, but since it doesn't i have tried adding an "EditFailedHandler", through which i thought i could perhaps revert the value myself. However, my default handler also kicks in and there seems to not be any way to set the equivalent of "setWillHandleErrors" that you can do when you kick off a DSRequest manually.
So is there any way to
1. make failed saves revert the checkbox value to the "before" value automatically?
2. If thats not possible, make the "editfailedhandler" be the only errorhandler for a grid, and skip the generic rpchandler?
Thanks (smartgwt 5.0-p20160121)
The problem is that if something goes wrong, my default RPC error handler shows an error, but the checkbox still has the "new" value. I would like the value to revert to the "before" value, since it didn't change on the server.
Preferrably, that would just happen, but since it doesn't i have tried adding an "EditFailedHandler", through which i thought i could perhaps revert the value myself. However, my default handler also kicks in and there seems to not be any way to set the equivalent of "setWillHandleErrors" that you can do when you kick off a DSRequest manually.
So is there any way to
1. make failed saves revert the checkbox value to the "before" value automatically?
2. If thats not possible, make the "editfailedhandler" be the only errorhandler for a grid, and skip the generic rpchandler?
Thanks (smartgwt 5.0-p20160121)
Comment