I have a combobox bound to a viewmodel and configured to use a remote datasource for the list of choices as follows:
As seen above, the the combobox is configured as "
Is it a bug that
input.kendoComboBox({
dataTextField:
'label'
,
dataValueField:
'id'
,
autoBind:
false
,
dataSource: {
type:
"json"
,
serverFiltering:
true
,
transport: {
read: {
url: 'api/getchoices,
data: {
filter:
function
(){
return
input.val();
}
}
}
}
}
});
<
input
data-role
=
"combobox"
data-bind
=
"value: id, comboboxText:idText"
/>
autoBind:
false
". This value is respected for those comboboxes on the page which have no value (in the viewmodel) but for those comboboxes that do have a value, the combobox will immediately query the remote server when the page loads. This is undesirable from a performance perspective, and also unnecessary since both the dataTextField and dataValueField are being set from the viewmodel.Is it a bug that
autoBind:
false
is not being respected? How can I suppress this unnecessary call to the remote datasource?