ASCX: The control requires a ScriptManager on the page.

Thread is closed for posting
8 posts, 0 answers
  1. Jon (I.T. Agility Inc.)
    Jon (I.T. Agility Inc.) avatar
    19 posts
    Member since:
    Feb 2007

    Posted 23 Jul 2009 Link to this post

    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?
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Jul 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jon (I.T. Agility Inc.)
    Jon (I.T. Agility Inc.) avatar
    19 posts
    Member since:
    Feb 2007

    Posted 24 Jul 2009 Link to this post

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

    Thanks.

    jon
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Jul 2009 Link to this post

    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.
  6. Jon (I.T. Agility Inc.)
    Jon (I.T. Agility Inc.) avatar
    19 posts
    Member since:
    Feb 2007

    Posted 24 Jul 2009 Link to this post

    Thanks Albert.

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

    Jon

  7. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Jul 2009 Link to this post

    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.
  8. Sergio
    Sergio avatar
    2 posts
    Member since:
    May 2009

    Posted 26 Jul 2009 Link to this post

    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



  9. BaiH
    BaiH avatar
    83 posts
    Member since:
    Aug 2008

    Posted 28 Jul 2009 Link to this post

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

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