Deployement not Rendering KendoUI

2019-05-09 13:01发布

问题:

VS2012 asp.net MVC4 c#, Internet Application with KendoUI Implementation.

The easiest way to say it is that My website looks like this

  • localy on the Development machine:

  • And like this deployed:

I have checked sever KendoUI forums, all of them pointing to Images missing... I checked and even copied over my deployment files, Files and Images are there, KendoUI Scripts are there.

Any ideas what I could be missing?

回答1:

This means that for some reason the Kendo JavaScript or CSS files are missing on your deployment server. You can verify this by checking your browser's developer console (the "Network" tab) for any failing HTTP requests (404 status code). In a word make sure the Kendo JS and CSS files are being deployed successfully.



回答2:

You need to add kendo scripts directly in the header of your layout.

<head>
   <script src="~/Scripts/kendo/jquery.min.js"></script>
   <script src="~/Scripts/kendo/kendo.web.min.js"></script>
</head>