I want to pull all data of a kendo dropdown list. I create dropdown with this code:
$("#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
});
};
Then I tried to pull data with using
var data = $("#dropDownList").data("kendoDropDownList").val();
var values = [];
for (var item in data) {
values.push(this.item);
}
But it didn't work. Any idea how can I do? Thanks in advance.