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

[Solved] How to return webservice error during client-databinding

2 Answers 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Todd Tomlin
Top achievements
Rank 1
Todd Tomlin asked on 20 Jan 2010, 10:44 PM
Using Q3 2009 sp2

I'm using client-side databinding with "SelectMethod" calling a web service for getting and paging through data.  I return a class with the "Data" and "Count" members.  If I want to return an error message during a web service call, how can I return that message to the client.  I can add a "Message" member to my class I return, but how can I tell RadGrid about the error?  It appears that "OnAjaxRequestError" is no longer valid.  I tried throwing an exception in the web service, but RadGrid is swallowing the error.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 25 Jan 2010, 02:45 PM
Hello Todd,

In order to achieve your goal you can try hadnling the below RadGrid client-side event:

OnDataBinding
OnDataBound
OnDataBindingFailed

I hope this helps.

Best wishes,
Iana
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.
0
Todd Tomlin
Top achievements
Rank 1
answered on 30 Jan 2010, 03:52 AM
OnDataBindingFailed worked great.

Thanks a lot!!!
Tags
Grid
Asked by
Todd Tomlin
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Todd Tomlin
Top achievements
Rank 1
Share this question
or