【发布时间】:2015-05-18 09:49:55
【问题描述】:
我有一个剑道 DropDownList 模板,我想通过 id 选择特定记录而不使用索引。
我想要的是选择具有 CustomerID
的记录以下是我的代码
$(document).ready(function() {
$("#shopSupplier").kendoDropDownList({
change:shopSupplierSelect,
dataTextField: "ContactName",
dataValueField: "CustomerID",
valueTemplate: 'template',
template: 'template',
dataSource: {
transport: {
read: {
dataType: "json",
cache:false,
url: "<?=base_url()?>/controller/method",
}
}
}
//,index:1 /// **I dont want this**
});
var dropdownlist = $("#shopSupplier").data("kendoDropDownList");
});
【问题讨论】:
标签: php jquery kendo-ui kendo-grid