剑道ui-剑道下载成功的方法



我有以下代码

    $("#categories").kendoDropDownList({
        dataTextField: "Name",
        dataValueField: "ID",
        dataSource: {
            serverFiltering: true,
            transport: {
                read: {
                    url: '@Url.Action("GetNames", "Index")',
                    dataType: "json",
                    type: "POST"
                }
            }
        }
    }).data("kendoDropDownList");

我需要在dropdownlist与数据绑定后执行一些代码。我怎样才能做到这一点。谢谢

$("#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
}

最新更新