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

AjaxManager null on load

2 Answers 39 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
staron
Top achievements
Rank 1
staron asked on 08 Dec 2008, 10:00 AM
Hi,
I have a radGrid on my form. The grid has a rowclick event which calls the following js function:

function

 

Click() {

 

 

var ajaxManager = $find("RadAjaxPanel2");

 

ajaxManager.ajaxRequest(2);

}

2 problems on this scenarioi. First is that the function is not only called on rowclick, but also on page lod. Is there a workaround for this? Second is that $find("RadAjaxPanel2") gives null at page load. Any suggestions on how to fix?

2 Answers, 1 is accepted

Sort by
0
staron
Top achievements
Rank 1
answered on 08 Dec 2008, 10:58 AM
PEBCAC
0
Maria Ilieva
Telerik team
answered on 08 Dec 2008, 02:35 PM
Hello,

Please try to use :

var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
  ajaxManager.ajaxRequest(arguments);


Please review the following help topic for more information on RadAjax Client-side API.


All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
staron
Top achievements
Rank 1
Answers by
staron
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or