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

AjaxManger OnRequestStart jQuery bind/on

1 Answer 37 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 13 Mar 2012, 11:54 AM
Dear Support,

I try to attach a second events to the AjaxManager by using jQuery:

$('<%= this.AjaxManager.ClientID %>').on('OnRequestStart', function(sender, args)
{                   
   //Do something
});

 or (I thinks it's 'RequestStart')
$('<%= this.AjaxManager.ClientID %>').on('RequestStart', function(sender, args)
{                   
   //Do something
});

but the addition event will not be fired?

Why?

Thanks in advance!

Christian

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 15 Mar 2012, 03:36 PM
Christian:

You have not specified if you are using Master/ContentPages and/or User Controls in your application. This could be one cause of the problem, if your RadAjaxManager is not defined on the page where you're trying to attach the event.

See the RadAjaxManagerProxy documentation page for insights.

Alternatively, you can attach an event handler in the code behind, as shown on that documentation page.

Hope this helps!
Tags
Ajax
Asked by
Christian
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or