Using RadScript Manager in Master Pages

4 posts, 0 answers
  1. Brett
    Brett avatar
    72 posts
    Member since:
    Mar 2012

    Posted 22 Jul 2009 Link to this post

    I understand that you have to have a ScriptManager or a RadScriptManager on your page before you add any Ajax controls.  But what do you do if you have a RadMenu on your master page with the RadScript Manager and then on your content page you have a RadGrid?  How do you enable Ajax onto the RadGrid with your ScriptManager or RadScriptManager?  I'm a bit perplexed as to how this would work being that you can only have one ScriptManager or RadScriptManager per page.
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 23 Jul 2009 Link to this post

    Hello Brett,

    RadScriptManager can replace the regular MS ScriptManager control and serves the same purpose with the addition that it combines the scripts of all RadControls on the page for better performance. More information about our RadScriptManager can be found here:

    http://www.telerik.com/help/aspnet-ajax/radscriptmanager.html

    RadAjaxManager, on the other hand, helps you ajaxify controls and provide granular ajax settings when necessary (without the necessity to use MS UpdatePanels and attach ajax triggers). How to ajaxify controls in master/content page or webform/user control scenario you can see from the following online demo of the product:

    http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx
    (examine the information from the help topics linked at the bottom of the Description tab as well)

    Best regards,
    Sebastian
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Syed
    Syed avatar
    1 posts
    Member since:
    Jan 2014

    Posted 22 Aug 2014 Link to this post

    HI ,
           i need to get the rad script manager id from user control which is placed in master page....can anyone help me 

  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 27 Aug 2014 Link to this post

    Hi Syed,

    Something like this should be working:

    protected void Page_Load(object sender, EventArgs e)
    {
        RadScriptManager scriptManager = (RadScriptManager) this.Master.FindControl("RadScriptManager1");
        string ID = scriptManager.ClientID;
    }

    I hope this helps.

    Regards,
    Hristo Valyavicharski
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top