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

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

1 Answer 92 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 24 Jun 2011, 12:58 AM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 29 Jun 2011, 11:45 AM
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.

Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Sean
Top achievements
Rank 2
Answers by
Simon
Telerik team
Share this question
or