Brian Mains
Top achievements
Rank 1
Brian Mains
asked on 13 May 2010, 05:35 PM
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.
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.
5 Answers, 1 is accepted
0
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.
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.
0
Brian Mains
Top achievements
Rank 1
answered on 14 May 2010, 01:28 PM
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.
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.
0
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.
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.
0
Nick
Top achievements
Rank 1
answered on 30 Apr 2013, 02:10 PM
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.
0
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:
Hope this helps.
All the best,
Eyup
the Telerik team
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.