在mvc4应用程序中使用kendo datepicker时出现未处理的异常 [英] Unhandled exception when using kendo datepicker in mvc4 application
问题描述
在我的mvc4项目中,我使用的是kendo datepicker。我为剑道包含了所有js和css以及dll。在我看来,剑道的Intellicense工作得很好。我使用如下的datepicker
@(Html.Kendo()。DatePicker()。名称(datepicker))
在我的布局页面中我喜欢下面
Hi,
In my mvc4 project I am using a kendo datepicker. I included all js and css and dll for kendo. Intellicense of kendo is working fine in my view. I used datepicker like below
@(Html.Kendo().DatePicker().Name("datepicker"))
in my layout page I did like below
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Styles.Render("~/Content/kendo/css")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/kendo")
@RenderSection("scripts", required: false)
@RenderSection("featured", required: false)
<section class="content-wrapper main-content clear-fix">
@RenderBody()
</section>
但是在运行项目时,未处理的异常显示如下
but when running the project an unhandled exception shows like below
第67行的未处理异常,http:// localhost:53500 /
0x800a01b6 - JavaScript运行时错误:对象不支持属性或方法'kendoDatePicker'
Unhandled exception at line 67, column 20 in http://localhost:53500/
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'kendoDatePicker'
有人可以帮我解决这个问题吗?
can anybody help me to solve this?
推荐答案
点击此处 [ ^ ]
点击此处,这是Telerik管理员的直接回复。点击这里。
如果你想捆绑,我想你需要分别捆绑剑道和Jquery。
所有最好的
谢谢
:)
Check here [^]
Check here, this is direct response from Telerik admins. Check here.
If you want to bundle, I guess you need to bundle the Kendo and Jquery separately.
All the Best
Thanks
:)
这篇关于在mvc4应用程序中使用kendo datepicker时出现未处理的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!