在mvc4应用程序中使用kendo datepicker时出现未处理的异常 [英] Unhandled exception when using kendo datepicker in mvc4 application

查看:84
本文介绍了在mvc4应用程序中使用kendo datepicker时出现未处理的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的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

Quote:

第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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆