This question is locked. New answers and comments are not allowed.
I am using Grid(Telerik extension for MVC) on my view page. I have included all the required css files in the content folder and added following code in the Site.Master file :-
<head runat="server">
<%= Html.Telerik().StyleSheetRegistrar()
.DefaultGroup(group => group
.Add("telerik.examples.css")
.Add("telerik.common.css")
.Add("telerik." + Html.GetCurrentTheme() + ".css")
.Combined(true)
.Compress(true))
%>
<asp:ContentPlaceHolder runat="server" ID="HeadContent" />
<asp:ContentPlaceHolder id="Head" runat="server">
</asp:ContentPlaceHolder>
<% Html.RenderPartial("Header"); %>
</head>
The issues are:-
1) GetCurrentTheme() method is not available.
2)Though telerik.examples.css and telerik.common.css files are present in content folder it throws file not found exception.
Secondly, In the Grouping demo (http://demos.telerik.com/aspnet-mvc-beta/grid/grouping), In the grid code css class is not mentioned and the grid has a look whereas the same code i have added in my view page(Only columns are modified) still the Grid is plain ,no allignment, columns ,no expand-collapse functionality.. nothing..
Is it because the code in Site.Master is not working?
and also for this code in Site.Master-
<% Html.Telerik().ScriptRegistrar()
.DefaultGroup(group => group
.Add("telerik.examples.js")
.Compress(true))
.OnDocumentReady(() => { %>prettyPrint();<% })
.Render(); %>
<% Html.RenderPartial("GoogleAnalytics"); %>
Though the file-telerik.examples.js is added in Scripts folder, it throws file not found exception.
<head runat="server">
<%= Html.Telerik().StyleSheetRegistrar()
.DefaultGroup(group => group
.Add("telerik.examples.css")
.Add("telerik.common.css")
.Add("telerik." + Html.GetCurrentTheme() + ".css")
.Combined(true)
.Compress(true))
%>
<asp:ContentPlaceHolder runat="server" ID="HeadContent" />
<asp:ContentPlaceHolder id="Head" runat="server">
</asp:ContentPlaceHolder>
<% Html.RenderPartial("Header"); %>
</head>
The issues are:-
1) GetCurrentTheme() method is not available.
2)Though telerik.examples.css and telerik.common.css files are present in content folder it throws file not found exception.
Secondly, In the Grouping demo (http://demos.telerik.com/aspnet-mvc-beta/grid/grouping), In the grid code css class is not mentioned and the grid has a look whereas the same code i have added in my view page(Only columns are modified) still the Grid is plain ,no allignment, columns ,no expand-collapse functionality.. nothing..
Is it because the code in Site.Master is not working?
and also for this code in Site.Master-
<% Html.Telerik().ScriptRegistrar()
.DefaultGroup(group => group
.Add("telerik.examples.js")
.Compress(true))
.OnDocumentReady(() => { %>prettyPrint();<% })
.Render(); %>
<% Html.RenderPartial("GoogleAnalytics"); %>
Though the file-telerik.examples.js is added in Scripts folder, it throws file not found exception.