Hi,
I'm working on loading over 10000 items with Kendo UI Dropdownlist, I want to use the configuration "virtualization" to implement virtual scrolling paging, the code as below:
dropDownList = $("#sel_containers").kendoDropDownList({
dataTextField: "containerId",
dataValueField: "ident",
filter: "contains",
virtual: {
itemHeight: 26,
valueMapper: function (options) {
alert("ok");
}
},
height: 400,
dataSource: {
type: "odata-v4",
transport: {
read: gms.App.getApiBaseUrl() + "odata/HistoryViews",
data: {
$select: "ident,containerId",
$orderby: "containerId asc",
}
},
pageSize: 100,
serverPaging: true,
serverFiltering: true
}
});
But the alert(...) function did not work when the dropdownlist has been loaded completely., that means valueMapper function did not be invoked.
Also I got a question about valueMapper, does this function need to return the index of the selected item?
Please help me with this issue that why valueMapper not working for me.
Thank you very much