Umbraco and RadRotator

4 posts, 0 answers
  1. Ben White
    Ben White avatar
    23 posts
    Member since:
    Feb 2010

    Posted 17 Jun 2010 Link to this post


    Has anyone used Umbraco and Telerik controls - when I add the RadRotator and set the Umbraco macro to cache the control then it stops working. The first page load is ok, subsequent page loads show nothing.

    I'm really scratching my head here!

  2. Ben White
    Ben White avatar
    23 posts
    Member since:
    Feb 2010

    Posted 17 Jun 2010 Link to this post

    Ok, found a fix for this but unfortunately I'm not sure about "why" this fixed the problem.

    I set the RegisterWithScriptManager property to false and the problem went away.

    I'm slightly confused though, by default it is set to true and the control will complain about not having a script manager inserted on the page. Surely by being set to true it does not need a client script manager block as it is using something on the server side????

  3. Lini
    Lini avatar
    2144 posts

    Posted 17 Jun 2010 Link to this post


    When you enable cache, the framework will simply output its HTML, without going through the rendering process on the server every time. This means that the control will not be able to register its scripts with the ASP.NET AJAX ScriptManager on the page and it will end up without client scripts and not working in the browser. When you set RegisterWithScriptManager=false, the control will output its own scripts and not depend on the ScriptManager for that, so the cached version will work fine.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. ian
    ian avatar
    4 posts
    Member since:
    May 2011

    Posted 19 Aug 2011 Link to this post


    I dont know if your still working on this issue but to get most telerik controls in umbraco you just need to add the form and script manager to your masterpages templates and it will start working straight away.

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"/>
    <umbraco:Macro Alias="ContactUs2" runat="server"></umbraco:Macro>

    Note this even works if you put it in a parent template.

Back to Top