剑道UI的DatePicker不会让用户选择一个日期 [英] Kendo UI DatePicker does not let the user select a date

查看:96
本文介绍了剑道UI的DatePicker不会让用户选择一个日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IE 7采用剑道的DatePicker与MVC 3(VB.NET,剃刀语法)当我在日期选择器点击它不会让我选择的日期。默认情况下,今天的日期被选择。如果我运行谷歌Chrome相同的code,它工作正常。此外,我研究了使用IE开发人员工具栏中的IE 7这个问题,它显示出无法选择的日期选择器被设置为开。我不知道我怎样才能将其关闭。我可以浏览在日期选择器的数月或数年,但实际上并不能选择一个日期。我还可以手动输入的日期选择器的文本框的日期。任何帮助将是非常美联社preciated请。

这是code我写的一个样本

 < D​​IV CLASS =主编场>
        @ Html.Kendo()的DatePicker()。名称(ExtMailDatePicker)。值(DateTime.Now)
        @ Html.ValidationMessageFor(功能(模型)model.Day)
    < / DIV>


解决方案

此问题发生在安装剑道框架的版本,并安装了jQuery的版本不匹配。例如:

使用Q2 2012 SP1装配剑道的UI,并使用从仅仅2012年第二季度(1.7.1)的JavaScript文件可能导致此问题。确保我有正确的文件后,它的工作原理。

I am using Kendo DatePicker with MVC 3 (VB.NET, Razor syntax) in IE 7. When i click on the datepicker it does not let me select the date. By default, today's date is selected. If i run the same code on Google chrome, it works fine. Also i investigated this issue using IE developer toolbar for IE 7, and it's showing that "Unselectable" for the datepicker is set to "On". I have no idea how can i switch it off. I can browse the months or years in the datepicker but can't actually select a date. i can also manually enter the date in the datepicker textbox. any help will be really appreciated please.

This is a sample of the code i am writing

      <div class="editor-field">
        @Html.Kendo().DatePicker().Name("ExtMailDatePicker").Value(DateTime.Now)
        @Html.ValidationMessageFor(Function(model) model.Day)
    </div>

解决方案

This issue happens when the version of kendo framework installed and the version of jquery installed don't match. for example

using Q2 SP1 2012 assembly of kendo ui, and using JavaScript files from just Q2 2012 (1.7.1) may cause this issue. after making sure i have the correct files, it works.

这篇关于剑道UI的DatePicker不会让用户选择一个日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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