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

RadAjaxManager - Client Event OnResponseRecieved not appearing

1 Answer 131 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 24 May 2011, 02:38 PM

Hi there

I am having issues with using the RadAjaxManager and the client events. I can only use the following 2:

OnRequestStart and OnResponseEnd

<telerik:RadAjaxManager ID="RadAjaxManager" runat ="server">
<
ClientEvents
OnRequestStart="startRequest" OnResponseEnd="endResponse">
</
telerik:RadAjaxManager
>

I need to use the following ClientEvents but they don't appear:

OnRequestSent and OnResponseReceived

Issue that is occuring is that upon an error occuring within the build and an exception being thrown doesn't invoke the OnResponseEnd="endResponse" and thus my function endResponse doesn't run


function endResponse(sender, eventArgs)
{
parent.enableTabs();
}

So I would like to use the onResponseRecieved so that even if an exception is thrown onResponseRecieved will still run a function

<
telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
<ClientEvents OnRequestStart="startRequest" OnResponseEnd="endResponse" OnResponseReceived="receiveResponse"/>
</telerik:RadAjaxManager >

function receiveResponse(sender, eventArgs)
{
parent.enableTabs();
}

I was wondering if it could be down to the Telerik.Web.UI.dll we are using as version is 2009.02.0826.20

Any responses or help are greatly appreciated!

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 25 May 2011, 01:18 PM
Hello David,

The RadAjaxManager only has two events. If you want to handle ajax errors, you can refer to this help article:

http://www.telerik.com/help/aspnet-ajax/ajax-error-handling.html

You can refer to the second option, where you handle the ScriptManager's AsyncPostBackError event.

I hope that helps.
Tags
Ajax
Asked by
David
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or