jquery – 如何检索kendo ui下拉列表的所有数据?

我想提取剑道下拉列表的所有数据.我使用以下代码创建下拉列表:
$("#dropDownList").kendoDropDownList({

    dataTextField: "field",autoBind: true,dataSource: {
        transport: {
            type: "POST",read: {
                url: "http://abc.com",contentType: "application/json; charset=utf-8",dataType: "json"
            }
        }
    },select: onSelect
});

};

然后我试着用数据拉取数据

var data = $("#dropDownList").data("kendoDropDownList").val();
var values = [];
for (var item in data) {
    values.push(this.item);

}

但它没有用.不知道怎么办?提前致谢.

解决方法

你能试一下吗 :
var data = $("#dropDownList").data("kendoDropDownList");

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: <span id=&quot...
jQuery 添加水印 <script src="../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...