or
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.autoBind:
false
is not being respected? How can I suppress this unnecessary call to the remote datasource?I am using Kendo UI grid with GridEditMode.InCell and I need to add hyperlink for delete/destroy command in the grid column instead of default "Delete" button.
My current code looks like:
c.Command(command => command.Destroy()).Width(90);
I also placed the same question at Stack Overflow. I hope one of the forums will answer my question.
Thanks in advance.