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

MasterPage and ContentPage relationship with AJAX

3 Answers 89 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Sergio Cortez
Top achievements
Rank 2
Sergio Cortez asked on 24 Apr 2009, 11:25 PM
Hi everybody.
I'm sure this is a well know topic for more experienced user but as  I am starting i need a little help.

This is the escenario. I have a Master Page in Sharepoint.
This MasterPage has Telerik Controls wich means that i have  a  RadScriptManager  and a RadAjaxManager.

Now i want to create a custom Application Page (is going to live in the _layouts folder) and this APP Page will have more Telerik controls.
This AppPage will load the master page so it means that the appPage doesnt need the radscriptmanager because it is already in the Master Page right?????

So i think i need to configure a   RadAjaxManagerProxy so it can get acces to the RadScriptManager  , right????
Well i dont know exactly how to do it. I have tried to follow some examples on that are on the Forums. But i cant get access to the scriptmanager.

Another thing that i tried to do is to create another ScriptManager in the AppPage but it sends me Script controls may not be registered before PreRender
I will appreciate any help on this.

Thank you very very much!
-Sergio

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 27 Apr 2009, 07:40 AM
Hello Sergio Cortez,

With RadAjaxManagerProxy you can set the AjaxSettings on your page (assuming the RadAjaxManager is in the master page), but you cannot access the RadScriptManager from the master page.

Is that what you are trying to achieve?

All the best,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sergio Cortez
Top achievements
Rank 2
answered on 27 Apr 2009, 02:27 PM
Yes Veselin that is what i want to do because the Telerik controls inside the AppPage requiere a RadScriptManager. But as the master page has it then i want to get access to it insted of creating a brand new RadScriptManager in the AppPage.

If I do create  the brand new RadScriptManager in the AppPage i got the Script controls may not be registered before PreRender error.


Thank you for the answer.

-Sergio

0
Veselin Vasilev
Telerik team
answered on 29 Apr 2009, 09:36 AM
Hello Sergio Cortez,

Please try this:

RadScriptManager.GetCurrent(Page)

to get a reference to the ScriptManager on the master page.

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Sharepoint Integration
Asked by
Sergio Cortez
Top achievements
Rank 2
Answers by
Veselin Vasilev
Telerik team
Sergio Cortez
Top achievements
Rank 2
Share this question
or