I'm using Kendo UI's DropDownList widget within an edit form and can't seem to set the initial value according to the organisation's ID. I suspect it has everything to do with the 'index' but am stumped as to how to retrieve this information when the edit form fields are populated by a query and the dropdown's options are pulled from remote datasource.
$("#organisations").kendoDropDownList({
dataTextField: "orgName",
dataValueField: "organisationID",
index: 0,
optionLabel: "-- Select --",
dataSource: {
transport: {
read: "assets/data/data.clients.php"
},
}
});
Any help is appreciated.
@rrfive