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

Unable to access RadAjaxManager in Client side

1 Answer 66 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Hari Prasad
Top achievements
Rank 1
Hari Prasad asked on 19 Feb 2010, 11:04 AM
Hi,

I am having WebForm.aspx which contains Master page(In master page Ajax Mangaer and Script Manager are there). In this web page I am having EditCandidate.ascx and in that I have RadTabStrip with 4 tabs. General, Preferences, Resume and Notes which are loading dynamically with Place holders inside the Multi page. So I have 4 user controls General.ascx, Preferences.ascx, Resume.ascx, Notes.ascx. Again I have in Notes.ascx another user control Grid.ascx. In this Grid.ascx I am not able to access the Rad Ajax Manager in client side. Following code I have written to acheive this

$find(

"<%=RadAjaxManager.GetCurrent( this.Page ).ClientID %>").ajaxRequest(requestArg);

But in other 3 user controls I don't have any user controls again like Notes.ascx. There I am able to access Rad Ajax Manager with this code. Even in Grid.ascx.cs I am able to access this with the following code.

 

RadAjaxManager

 

ajaxManager = RadAjaxManager.GetCurrent(Page);
But if I write the same client side script in Notes.ascx, it works fine for me.
I am not understanding what is the problem behind this.

Please help me on acheiving this as this one is little bit urgent for me.

Thanks in advance.

Hari.

 

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 19 Feb 2010, 03:50 PM
Hello Hari,

Could you please specify if the javascript in the Grid.ascx controls is being executed and are you receiving a javascript error that the manager is null?

Sincerely yours,
Iana
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
Hari Prasad
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or