剑道下拉列表中没有IE8工作 [英] Kendo dropdown is not working in IE8
本文介绍了剑道下拉列表中没有IE8工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用下面的code绑定剑道的DropDownList。
I have used the following code to bind kendo dropdownlist.
<input type="text" id="ddlCurrency" class="k-dropdown" name="currency" tabindex="3"
style="width: 80px;" />
var ddlCurrency = $("#ddlCurrency").kendoDropDownList({
//optionLabel: "Select Area",
dataTextField: "Name",
dataValueField: "Id",
//filter: "contains",
dataSource: {
serverFiltering: true,
transport: {
read: "/DesktopModules/MyServices/API/Test"
}
}
}).data("kendoDropDownList");
这code未在IE 8的工作,请帮助我..我怎样才能让这方面的工作。
this code is not working in IE 8. please help me.. how can i make this working..
推荐答案
尝试设置数据类型为JSON。有些浏览器可能不以其他方式解析JSON响应。
Try setting dataType to json. Some browsers may not parse the JSON response otherwise.
OLD:
transport: {
read: "/DesktopModules/MyServices/API/Test"
}
新:
transport: {
read: {
url: "/DesktopModules/MyServices/API/Test",
dataType: "json"
}
}
这篇关于剑道下拉列表中没有IE8工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文