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

Umbraco and RadRotator

3 Answers 93 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Ben White
Top achievements
Rank 1
Ben White asked on 17 Jun 2010, 01:02 PM
Hi,

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!

Thanks.

3 Answers, 1 is accepted

Sort by
0
Ben White
Top achievements
Rank 1
answered on 17 Jun 2010, 01:23 PM
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????


0
Lini
Telerik team
answered on 17 Jun 2010, 02:55 PM
Hello,

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,
Lini
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
0
ian
Top achievements
Rank 1
answered on 19 Aug 2011, 03:35 PM
Hi

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>
</form

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

cheers
Ian
Tags
Rotator
Asked by
Ben White
Top achievements
Rank 1
Answers by
Ben White
Top achievements
Rank 1
Lini
Telerik team
ian
Top achievements
Rank 1
Share this question
or