Hi,
I'm wondering how can I read get the data from datasource before user click on the autocomplete widget. I have the following code:
var ds = new kendo.data.DataSource({
transport: {
read: {
url: "../IndividualData/SalesPerson",
dataType: "json",
data: this.requestData()
}
},
schema: { data: "data", total: "total" },
pageSize: 50
})
this.autocomplete.setDataSource(ds);
console.log(this.autocomplete.dataSource);
But it seems like I'm always getting empty datasource for some reason. Can anyone help me?
Regards,
Yifan