This is a migrated thread and some comments may be shown as answers.

[Solved] Error handling during databind

1 Answer 158 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve Wolfe
Top achievements
Rank 1
Steve Wolfe asked on 13 Nov 2009, 05:45 AM
I am using automatic databinding, and I understand the model for handling errors during Create/Update/Delete actions of the CRUD model, but how/when do you handle errors during Read operations.

For instance you have a databound RadGrid, how do you handle errors that occur during the select operation, when populating the grid?

-Steve

1 Answer, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 18 Nov 2009, 11:09 AM
Hello Steve,

If you are using a datasource control, you can attach to the _Selecting/_Selected server side handlers. There, you can use the exception parameter, to trap any exception being raised, and take further action accordingly. I hope this is a suitable approach for you.

Best wishes,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Steve Wolfe
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or