This question is locked. New answers and comments are not allowed.
I am trying to use a javascript variable to specify which Telerik theme I want to use:
I have tried many variations on the .Add("'" + @:theme + "'") above, but none with any success. For example, the following results in an error stating, "Cannot convert lambda expression to type 'string' because it is not a delegate type<scripttype="text/javascript">var path = "~/Content/2011.2.712";var theme = "telerik.webblue.min.css";function setTheme() {@{Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.DefaultPath("~/Content/2011.2.712").Add("telerik.common.min.css").Add("'" + @:theme + "'").Combined(true).Compress(true)).Render();}}</script>
", which I found strange, since a string is all I am using when I state the filename directly (which does work):If anyone could help me out and suggest a way that I can use that javascript variable to specify my theme, I would appreciate it.Add(@<text>theme</text>)