
Manuel Ortiz
Top achievements
Rank 1
Manuel Ortiz
asked on 25 Jun 2010, 06:30 AM
Hello is there any demo or help article that shows how (using automatic data source operations) in radgrid I can inform the user if an update, insert or delete operation failed?? If not, how can I accomplish this??
Thanx,
Manuel
Thanx,
Manuel
4 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 25 Jun 2010, 07:48 AM
Hi Manuel,
Attach ItemUpdated and ItemDeleted events to radgrid and check for 'e.Exception' which indicates whether exception occured during process.
Code behind:
-Shinu.
Attach ItemUpdated and ItemDeleted events to radgrid and check for 'e.Exception' which indicates whether exception occured during process.
Code behind:
protected void RadGrid1_ItemUpdated(object source, GridUpdatedEventArgs e) |
{ |
if (e.Exception != null) |
{ |
e.ExceptionHandled = true; |
Response.Write(e.Exception.Message); // Show error message |
} |
} |
protected void RadGrid1_ItemDeleted(object source, GridDeletedEventArgs e) |
{ |
if (e.Exception != null) |
{ |
e.ExceptionHandled = true; |
Response.Write(e.Exception.Message); // Show message |
} |
} |
-Shinu.
0

Manuel Ortiz
Top achievements
Rank 1
answered on 25 Jun 2010, 02:18 PM
If I have general Health Monitoring on my website that monitors all exceptions, will it be fired before the code you just sent me??
Regards,
Manuel
0

Manuel Ortiz
Top achievements
Rank 1
answered on 29 Jun 2010, 11:24 PM
Any answer to my last question??
Thanks,
Manuel
Thanks,
Manuel
0

Shinu
Top achievements
Rank 2
answered on 30 Jun 2010, 05:44 AM
Hello,
I regret to inform you that I am not quite sure about such scenario. Probably someone from Telerik can explain better on this. Can someone from Telerik give us a hand?
-Shinu.
I regret to inform you that I am not quite sure about such scenario. Probably someone from Telerik can explain better on this. Can someone from Telerik give us a hand?
-Shinu.