This question is locked. New answers and comments are not allowed.
Hi All.
This post is meant as a help to those who, like me, have searched for help on using the Telerik MVC controls within a new ASP.NET Area and have trouble finding anything specific. In order to get the controls working in an ASP.NET Area, there are two basic steps to follow:
1) Add a web.config file to the Views folder in the new Area with a reference to the Telerik MVC controls, as shown below:
2) Add a new Partial View called _ViewStart to the Views folder in the new ASP.NET area with the following content:
This will set your default layout for all pages to the same layout as is used for the root of the application, including all references to CSS and JavaScript files.
I hope this helps.
-Darren
This post is meant as a help to those who, like me, have searched for help on using the Telerik MVC controls within a new ASP.NET Area and have trouble finding anything specific. In order to get the controls working in an ASP.NET Area, there are two basic steps to follow:
1) Add a web.config file to the Views folder in the new Area with a reference to the Telerik MVC controls, as shown below:
<system.web.webPages.razor> <host factoryType . . . /> <pages pageBaseType="System.Web.Mvc.WebViewPage"> <namespaces> . . . <add namespace="Telerik.Web.Mvc" /> <add namespace="Telerik.Web.Mvc.UI" /> </namespaces> </pages> </system.web.webPages.razor>2) Add a new Partial View called _ViewStart to the Views folder in the new ASP.NET area with the following content:
@{ Layout = "~/Views/Shared/_Layout.cshtml";}This will set your default layout for all pages to the same layout as is used for the root of the application, including all references to CSS and JavaScript files.
I hope this helps.
-Darren