Can't seem to make RadScriptManager play nice with a Master Page

Thread is closed for posting
2 posts, 1 answers
  1. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 23 Jun 2011 Link to this post

    Hi all,

    I have the following issue:

    In Site.Master I have the following:

    <head runat="server">
        <title>
            <asp:ContentPlaceHolder ID="TitleContent" runat="server" />
        </title>
        <telerik:RadCodeBlock runat="server">
            <%= Html.MinifyStylesheet("~/Content/Site.css") %>
            <%= Html.MinifyStylesheet("~/Content/dark-hive-custom/jquery-ui-1.7.2.custom.css")%>
            <%= string.Format("<link REL='SHORTCUT ICON' HREF='{0}'>", CompilationSymbol.IsCableSolve ? Html.ResolveUrl("~/content/images/cs_icon.ico") : Html.ResolveUrl("~/content/images/id.ico"))%>
        </telerik:RadCodeBlock>
        <asp:ContentPlaceHolder ID="CssContent" runat="server">
        </asp:ContentPlaceHolder>
    </head>

    and, at the bottom of the page right before the closing body tag, I put my RadScriptManager declaration.

    When my RadScriptManager is on the Master page, I encounter a weird error in my View. The view is acknowledging that it sees the RadScriptManager, but AJAX RadSplitter is saying that Telerik is undefined. If I move my RadScriptManager to the view page, removing it from the master page, AJAX RadSplitter works as expected.

    Now, I was completely happy keeping my RadScriptManager on my view. I only use Telerik AJAX controls on this view. Unfortunately, I need the RadScriptManager on my Master Page in order to make the RadCodeBlock work on all pages which are not my view. If I remove the RadCodeBlock from Site.Master then my view throws an error mentioning the code blocks. 

    You see my problem? I have a circular reference of errors. Any suggestions on how to support this other than adding a ScriptManager to every other view?
  2. Answer
    Simon
    Admin
    Simon avatar
    2281 posts

    Posted 29 Jun 2011 Link to this post

    Hi Sean,

    Generally RadControls for ASP.NET AJAX are not supported out-of-the-box in MVC. Please consider using the Splitter extension for ASP.NET MVC as it will run nicely without any difficulties in MVC. Here is a demo of that extension.

    I hope this helps.

    All the best,
    Simon
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top