I manage to make anything work with the , where ever I try to use one, grid or .
my code is:
thanks for the assistance
var customersData = new kendo.data.DataSource({
dataSource: {
type: "odata",
transport: {
read: {
url: SCH.webapp_api + '/scheduler/customers/data',
dataType: "json",
type: "GET",
cache: false,
},
schema: {
model: {
fields: {
id: { type: "number" },
name: { type: "string" },
company: { type: "string" },
}
}
}
},
autoSync: true,
serverFiltering: true,
}
});
$("#customers").kendoDropDownList({
optionLabel: "Choose a customer",
filter: "contains",
dataTextField: "name",
dataValueField: "id",
dataSource: customersData,
index: 0
});