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

EditorTemplates with NuGet?

2 Answers 37 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 04 Sep 2018, 08:48 PM

HI, I work on a project that uses Kendo MVC widget. I install it from the Telerik Nuget Source and add: Telerik.UI.for.AspNet.Mcv5 Version 2018.2.704. All work great until I need to use ForeignKey column in my grid. The drop-down list does not appear. I look on Google and someone says that I need to add the EditroTemplates views under Views/Shared in my MVC project. So I took the one in your demo at this location C:\Program Files (x86)\Progress\Telerik UI for ASP.NET MVC R2 2018\wrappers\aspnetmvc\Examples\VS2017\Kendo.Mvc.Examples\Views\Shared

But Now I got this runtime error: cannot load  'System.Web.Mvc.ViewUserControl<object>'. in

Line 1 : <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<object>" %>
Line 2 :
Line 3 : <%= Html.Kendo().TextBoxFor(model => model)%>

Source file : /Views/Shared/EditorTemplates/String.ascx    Line : 1 

What do I missed?

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 06 Sep 2018, 09:28 AM
Hello Pierre,

Could you please try deleting the "aspx" files for the templates and keep only the "cshtml" editor templates?

Looking forward to your reply with the result.


Regards,
Konstantin Dikov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Pierre
Top achievements
Rank 1
answered on 06 Sep 2018, 06:50 PM
Working. Thanks
Tags
Installer and VS Extensions
Asked by
Pierre
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Pierre
Top achievements
Rank 1
Share this question
or