Kendo UI reference not working in Razor view

后端 未结 10 2340
感情败类
感情败类 2021-02-19 09:10

I am trying to create a Telerik Grid view but when I go to reference kendo it does not recognize it. Visual Studio is giving me an error when I try to reference kendo. This is t

10条回答
  •  再見小時候
    2021-02-19 09:48

    I had the same problem. The third point mentioned below solved the problem in my case.

    1. Include the JavaScript and CSS files: The ordering of scripts and css files is also very important. jQuery should be included before the KendoUI script file(s).

    2. Add reference to Kendo.Mvc.dll: Right-click the References node in Solution Explorer and click Add Reference. Select the Browse tab of the Add Reference dialog and navigate to the install location of Telerik UI for ASP.NET MVC.

    3. Update the web.config in Views folder: Open Views/Web.config (or root Web.config if using ASPX). Locate the namespaces tag. Append an below add tag to the namespaces tag.

    
    

提交回复
热议问题