Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in ASP.NET MVC > ASCX: The control requires a ScriptManager on the page.

Not answered ASCX: The control requires a ScriptManager on the page.

Feed from this thread
  • Posted on Jul 23, 2009 (permalink)

    so far - completely unable to get telerik Q2 2009 to work in MVC projects using any sort of encapsulation with ascx files.

    Trying to use a combo box inside a ascx that is rendered with Html.RenderPartial.

    Is this possible?  Or do all the rad controls have to go in the aspx views?

    Reply

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Jul 24, 2009 (permalink)

    Hi CharmingSoft,

    I suggest you check our MvcForums demo. It shows how to use RadControls in partial views (user controls).
    You can download the source code from here.

    Regards,
    Albert
    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.

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.
  • Posted on Jul 24, 2009 (permalink)

    Thanks Albert.  So a ScriptManager is required inside every partial view.  Is this going to be inefficient? 

    Thanks.

    jon

    Reply

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Jul 24, 2009 (permalink)

    Hi Jon,

    There are no known performance issues with that approach.

    All the best,
    Albert
    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.

    Reply

  • Posted on Jul 24, 2009 (permalink)

    Thanks Albert.

    One last question, I noticed the Skin rendering fails for controls inside partial views - is there a solution for this?

    Jon

    Reply

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Jul 24, 2009 (permalink)

    Hello,

    You can either manually include the skins CSS files or add a RadStyleSheetManager control in your partial views.

    Greetings,
    Albert
    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.

    Reply

  • Sergio avatar

    Posted on Jul 26, 2009 (permalink)

    Hello,

    I am having some problems with a RadDatePicker control in a partial view (ascx).
    I get a javascript error (Expected :) in the line that begins with:

    Sys.Application.add_init(function(){$create(Telerik.Web.UI.RadDatePicker, {"_PopupButtonSettings":.....



    In the ascx I have:

        <telerik:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1">

    <StyleSheets>

    <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Editor.css" />

    <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Forest.Editor.Forest.css" />

    </StyleSheets>

        </telerik:RadStyleSheetManager>

    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnableScriptCombine="true">

    </telerik:RadScriptManager>

    ...
    ..

    <telerik:RadDatePicker runat="server" Width="161px" ID="birthDayPicker" MinDate="1920-01-01" >

    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>

    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>

    </telerik:RadDatePicker>


    In the web.config I have:


    <httpHandlers>

          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

    ...

        <handlers>

          <add name="Telerik.Web.UI.WebResource.axd" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode" />



    Thanks a lot for your help



    Reply

  • Posted on Jul 28, 2009 (permalink)

    Sergio, Check this forum thread for a similar discussion. It did the trick for me.

    --BH

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in ASP.NET MVC > ASCX: The control requires a ScriptManager on the page.