I want to get all the data from the kendo drop-down list. I am creating a dropdown using 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 extract data using
var data = $("#dropDownList").data("kendoDropDownList").val(); var values = []; for (var item in data) { values.push(this.item); }
But that did not work. Any idea how I can do this? Thanks in advance.
source share