Kendo ui Kendodropdownlist成功方法
我有以下代码Kendo ui Kendodropdownlist成功方法,kendo-ui,Kendo Ui,我有以下代码 $("#categories").kendoDropDownList({ dataTextField: "Name", dataValueField: "ID", dataSource: { serverFiltering: true, transport: { read: { url: '@Url.Acti
$("#categories").kendoDropDownList({
dataTextField: "Name",
dataValueField: "ID",
dataSource: {
serverFiltering: true,
transport: {
read: {
url: '@Url.Action("GetNames", "Index")',
dataType: "json",
type: "POST"
}
}
}
}).data("kendoDropDownList");
我需要在dropdownlist与数据绑定后执行一些代码。我怎样才能做到这一点。
谢谢。您是否尝试在
kendoDropDownList
上使用事件?我正在寻找一个成功的事件,但是数据绑定事件也可以。谢谢
$("#categories").kendoDropDownList({
dataTextField: "Name",
dataValueField: "ID",
dataSource: {
serverFiltering: true,
transport: {
read: {
url: '@Url.Action("GetNames", "Index")',
dataType: "json",
type: "POST"
}
}
},
dataBound: OnDataBound
}).data("kendoDropDownList");
function OnDataBound() {
// do stuff
}