I have an old application where the user was entering an input a dropdown list (of multiple values concatenated) was displayed and he could filter the list based on the values displayed.
Now we decided to use Combobox since the Autocomplete does not open the dropdown when the autocomplete receives focus. Since the list contains too many values I though I should try also virtualization
@(Html.Kendo().ComboBox()
.Name(
"deviceclassselection"
)
.HtmlAttributes(
new
{ @
class
=
"form-control s-device-class"
})
.DataSource(dataSource => dataSource.Ajax()
.Read(read => read.Action(
"GetDeviceClasses"
,
"Device"
).Data(
"device.getDeviceClassAdditionalData"
))
.PageSize(40)
.Events(events => events.Error(
"device.dataSourceError"
)))
.Template(
"#= data.Designation # - #= data.Manufacturer # - #= data.Model #"
)
.Height(200)
.Events(events => events.Select(
"device.deviceClassSelect"
))
.Virtual(v => v.ItemHeight(26).MapValueTo(
"dataItem"
))
.Deferred()
)
However when I write something in the combobox no event is triggered on the server. If I open the dropdown manually the server is called.
I tried removing the Virtual and the result was the same (Probably it did not worked because I left the Ajax and the PageSize).