使用Internet Explorer更新Kendo DropDownList时出现问题
Issue updating Kendo DropDownList with Internet Explorer
我有一个Kendo DropDownList,我想通过javascript函数更新/刷新它。使用FireFox和Chrome,它运行良好,但使用Internet Explorer,它不会更新任何内容。
@(Html.Kendo().DropDownList()
.Name("myDDL")
.HtmlAttributes(new { style = "width: 320px" })
.DataTextField("Description")
.DataValueField("Id")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("fillDDL", "ControllerName");
});
})
)
javascript函数:
function refreshForm() {
$("#myDDL").data("kendoDropDownList").dataSource.read();
}
也勾选了这个问题,但没有运气。
我正在测试Internet Explorer 11。
有什么帮助吗?
编辑
这是生成的Javascript代码:
jQuery(function () {
jQuery("#myDDL").kendoDropDownList({
"dataSource": {
"transport": {
"read": {
"url": "/ControllerName/fillDDL"
},
"prefix": ""
},
"schema": {
"errors": "Errors"
}
},
"dataTextField": "Description",
"dataValueField": "Id"
});
});
我找到了一个解决方案,我正在发布它,这样它可以帮助其他可能面临同样问题的人。
现在我有
read.Action("fillDDL", "ControllerName").Type(HttpVerbs.Post);
而不是
read.Action("fillDDL", "ControllerName");
添加这段代码现在可以刷新DropDownList,即使在使用Internet Explorer时也是如此。
相关文章:
- 在指令控制器中使用$attrs时出现问题
- 将PHP变量传递给jQuery时遇到问题
- Canvas Html5绘图应用程序,移动画布会导致重大问题
- 参数变量出现ngTable指令问题
- 剑道网格jQuery动画()问题
- 我的jQuery插件参数没有正确启动,遇到了问题
- Phonegap-(安卓/iphone)多个图像的图像库出现问题
- TableExport jquery插件:文件名和扩展名问题
- JavaScript Pub/Sub属性访问问题
- JavaScript异步问题
- 如何解决Yii中的页面刷新问题
- Safari(Mac OS)上的jQuery平滑滚动问题
- jqGrid树网格问题
- 使用正则表达式评估电子邮件地址时出现性能问题
- 如何消除代码中的未定义和其他问题
- JavaScript代码问题:我正在将对象转换为数组
- 三星智能电视应用程序;Brightcove示例应用程序远程控制问题
- mvc 4 jquery功能与dropdownlist和window.onload问题有关
- 使用Internet Explorer更新Kendo DropDownList时出现问题
- 当我尝试使用jQuery将标题属性为DropDownlist时出现性能问题