MasterPage and ContentPage relationship with AJAX

4 posts, 0 answers
  1. Sergio Cortez
    Sergio Cortez avatar
    23 posts
    Member since:
    Nov 2008

    Posted 24 Apr 2009 Link to this post

    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

  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 27 Apr 2009 Link to this post

    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.

  3. Sergio Cortez
    Sergio Cortez avatar
    23 posts
    Member since:
    Nov 2008

    Posted 27 Apr 2009 Link to this post

    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

  4. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 29 Apr 2009 Link to this post

    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.
Back to Top