Kendo ui 网格列上的剑道Ui加载项更改操作下拉列表
我想在此示例中为下拉列表添加onchange操作: 我需要将行id发送到此函数。如果您看到可以为列指定自定义编辑器,并在该方法中执行所需的操作,例如Kendo ui 网格列上的剑道Ui加载项更改操作下拉列表,kendo-ui,Kendo Ui,我想在此示例中为下拉列表添加onchange操作: 我需要将行id发送到此函数。如果您看到可以为列指定自定义编辑器,并在该方法中执行所需的操作,例如 function categoryDropDownEditor(container, options) { $('<input required data-text-field="CategoryName" data-value-field="CategoryID" data-bind="value
function categoryDropDownEditor(container, options) {
$('<input required data-text-field="CategoryName" data-value-field="CategoryID" data-bind="value:' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList({
autoBind: false,
select: function(e) {
var item = e.item;
var text = item.text();
// Use the selected item or its text
},
dataSource: {
type: "odata",
transport: {
read: "http://demos.kendoui.com/service/Northwind.svc/Categories"
}
}
});
}
function categorhydropdowneditor(容器、选项){
$('')
.appendTo(容器)
.kendoDropDownList({
自动绑定:错误,
选择:功能(e){
var项目=e项目;
var text=item.text();
//使用所选项目或其文本
},
数据源:{
类型:“odata”,
运输:{
阅读:“http://demos.kendoui.com/service/Northwind.svc/Categories"
}
}
});
}
您需要在这里提供更多描述,以及您迄今为止尝试过的一些代码。。