Hi,
we are using automatic actions in RadGrid for inserting, updating and deleting.
In examples an e.exception is checked after trying to get the id of the changed/deleted item.
If this exception is there an error message is shown and the operation was canceled.
Now this is our intended behaviour too - but with another check. Additionally i have to check against a database if it is allowed to delete this record. So i put some lines of code to ItemDeleted event.
My problem is that i have no event/method/exception for canceling the deleting of my database check results in false.
If i throw an exception and catch them at the end the event was fine and deletion was processed.
Is there any other possibililty to do this without setting automaticactions to false and write my own code?
Simply by setting a property to cancel delete or update?
Thanks in advance for clarify my issue.
Regards
Stefan
we are using automatic actions in RadGrid for inserting, updating and deleting.
In examples an e.exception is checked after trying to get the id of the changed/deleted item.
If this exception is there an error message is shown and the operation was canceled.
Now this is our intended behaviour too - but with another check. Additionally i have to check against a database if it is allowed to delete this record. So i put some lines of code to ItemDeleted event.
My problem is that i have no event/method/exception for canceling the deleting of my database check results in false.
If i throw an exception and catch them at the end the event was fine and deletion was processed.
Is there any other possibililty to do this without setting automaticactions to false and write my own code?
Simply by setting a property to cancel delete or update?
Thanks in advance for clarify my issue.
Regards
Stefan