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

Setting OnRequestStart from Client Side

1 Answer 62 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 07 Jun 2010, 03:52 PM
Fairly basic question, but one that I have not been able to find the answer to.

I have a page in which I need to set the OnRequestStart of the RadAjaxManager event handler from the client side based on other functions on the page.  I can easily get the reference to the manager on the client; however setting the event handler does not seem to be available?  Is this true?  If not (I hope) what is the correct method?

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 08 Jun 2010, 08:01 AM
Hello David,

The code bellow demonstrates how you can attach handler on RadAjaxManager.
var manager = $find("Manager");
manager["OnRequestStart"] = started;
//OR 
manager["OnRequestStart"] = function(){/*code*/};
  
                             
function started(sender,args) {/*code*/}


Best wishes,
Nikolay
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.
Tags
Ajax
Asked by
David
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or