EditorTemplates with NuGet?

3 posts, 1 answers
  1. Pierre
    Pierre avatar
    261 posts
    Member since:
    Apr 2007

    Posted 04 Sep 2018 Link to this post

    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. Answer
    Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 06 Sep 2018 Link to this post

    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.
  3. Pierre
    Pierre avatar
    261 posts
    Member since:
    Apr 2007

    Posted 06 Sep 2018 in reply to Konstantin Dikov Link to this post

    Working. Thanks
Back to Top