RadAjaxPanel Error - How to Resolve

6 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 13 May 2010 Link to this post

    Hello,

    I wrap some markup with a RadAjaxPanel.  I'm getting an error in a callback related to this, and I can't figure out why it's happening.  It's preventing the page from working, even though the debugger shows everything correctly setup.  So I was wondering: is there an event that fires when an error happens, so I know that it's an error that comes from the server, or is actually the error the debugger is telling me it is?  How can I potentially resolve where it may really be coming from?

    Thanks.
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 14 May 2010 Link to this post

    Hello Brian,

    Could you please specify what is the error you received? Also it will be helpful if you send us the problematic code for further investigation.

    Sincerely yours,
    Pavlina
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 14 May 2010 Link to this post

    Hello,

    The $removeHandler definition had a call for a._events, where it removes an event handler.  a._events is undefined, but _events is not.  The error was rather strange; it was related to a calendar extender control in the ACT.  Whenever the calendar appeared, I would get this error when the RadAjaxPanel posted back, for whatever reason.  As soon as I removed it and replaced it with a raddatepicker, it worked fine...

    But the point is that I don't know how to catch and wrap the error, as is there a client-side success or failed handler for the RadAjaxPanel?

    Thanks.
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 14 May 2010 Link to this post

    Hi Brian,

    Our developers have already fixed the problem with RadAjax and calendar extender. You can download a latest internal built from your Telerik account where the fix would be available.

    Kind regards,
    Pavlina
    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.
  6. Nick
    Nick avatar
    1 posts
    Member since:
    Jan 2011

    Posted 30 Apr 2013 Link to this post

    I would like to know how to catch errors from the radajaxpanel as well.  I don't care what the error is - I don't want it swallowed by ajax; I want my code to get it and throw an error to be handled by my code.

  7. Eyup
    Admin
    Eyup avatar
    3007 posts

    Posted 03 May 2013 Link to this post

    Hi Nick,

    You can refer to this article for possible approaches:
    http://www.telerik.com/help/aspnet-ajax/ajax-error-handling.html

    Here is a basic sample, where you can debug your project using the following event:
    Copy Code
    protected void RadScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
    {
        Type errorType = e.Exception.GetType();
        string errorReason = e.Exception.Message;
    }

    Hope this helps.

    All the best,
    Eyup
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017