Error handling with RadAjaxManager

3 posts, 1 answers
  1. Suresh
    Suresh avatar
    14 posts
    Member since:
    Jun 2011

    Posted 25 Jan 2012 Link to this post

    I am using RadAjaxManagerProxy in my user control and RadAjaxManager in the master page and a RadAjaxLoadingPanel. When an error occurs server side, the loading panel hides and does not show any error message. How can I show an error message when an ajax request fails.
  2. Answer
    Antonio Stoilkov
    Antonio Stoilkov avatar
    530 posts

    Posted 30 Jan 2012 Link to this post

    Hi Suresh,

    You could check out the Error Handling For Ajax Requests help article below for handling errors when ajax is enabled. Additionally, you could implement some custom logic by wrapping the code that throws an error in try-catch block and showing the error message.

    Antonio Stoilkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. DevCraft R3 2016 release webinar banner
  4. Suresh
    Suresh avatar
    14 posts
    Member since:
    Jun 2011

    Posted 31 Jan 2012 Link to this post

    <script type="text/javascript">
    function EndRequestHandler(sender, args) {
            if (args.get_error() != undefined) {
                var objError = args.get_error();
                showMessage({ messageType: 'error', message: objError.message });
    Above script did it for me, Thanks.
Back to Top