This question is locked. New answers and comments are not allowed.
I am having difficulty to cache the PanelBar using the `OutputCache` attribute.
The control works the first time it is rendered but after being cached clicking on the PanelBar does not have any effect (it does not perform the open/close animations).
It is used as follows:
Controller
View
_Layout.cshtml
Looking at FireBug's output it does not provide and JavaScript or download errors.
I must be missing a basic step but cannot work it out.
I am using 2011.3.1115 (Update: 2012.2.214 also behaves the same)
Update:
Running diff between the working and non-working HTML showed that the following generated scripts is missing:
How do I get it to generate the required JavaScript?
Thank you,
Philip
The control works the first time it is rendered but after being cached clicking on the PanelBar does not have any effect (it does not perform the open/close animations).
It is used as follows:
Controller
[OutputCache(Duration = 60*5)]public PartialViewResult NavigationMenu(){ return PartialView();}View
@Html.Action("NavigationMenu", "Home")_Layout.cshtml
@(Html.Telerik().ScriptRegistrar() .DefaultGroup(group => group .Add("telerik.common.js") .Add("telerik.panelbar.js") .Compress(false)))Looking at FireBug's output it does not provide and JavaScript or download errors.
I must be missing a basic step but cannot work it out.
I am using 2011.3.1115 (Update: 2012.2.214 also behaves the same)
Update:
Running diff between the working and non-working HTML showed that the following generated scripts is missing:
<script type="text/javascript">//<![CDATA[jQuery(document).ready(function(){jQuery('#NavigationMenu').tPanelBar({effects:{list:[{name:'property',properties:['height','opacity']}],openDuration:200,closeDuration:300}, expandMode:1});});//]]></script>How do I get it to generate the required JavaScript?
Thank you,
Philip