How do I Prevent Error method on Cancel

2 posts, 0 answers
  1. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 05 Oct 2010 Link to this post

    Ok, lets say I have a callback to a webservice going on and I then click a Linkbutton on the page to nav away from the callback fails, and it triggers my clientside error handler which makes my custom error text appear.   To my users, something seems broken...when really its just because they canceled the request (essentially)

    Is there a way to detect a user interruption in my error handler so I can just silently fail it?  I normally dump some text or an image into the container inside my error handlers (clientside ones) so it's pretty obvious to them something funky was going on :)
  2. Pero
    Pero avatar
    1156 posts

    Posted 08 Oct 2010 Link to this post

    Hi Steve,

    Besides, getting the actual error message from the server, there is nothing you can do to determine how the error arose, in the event handler of the OnClientResponseError client-side event. The error can be retrieved from the eventArgs parameter, using the args.get_errorMessage() method.

    You could open a support ticket, and send us a sample project to demonstrate your specific scenario, and we can try to suggest an approach to resolve the issue.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top