Hello I have a dropdownlist object that have around 2000 items to load. But it is really slow to open the dropdown. My javascript array containing my objects is local and I don't need to fetch it using webservice in the datasource.
I tought I could just virtualize it easily by setting virtual: {itemHeight:26}. Initially it seemed to work fine but when I update the value in the model it fails an I have the following error : "valueMapper is not provided while the value is being set".
I presume I have to set the valueMapper property to make that work, but the only example I can find is with a remote service. Here's my attempt but it just fails :
$scope.myComboBoxOptions = {
valuePrimitive: true,
filter: "startswith",
dataTextField: "CodeDevise",
dataValueField: "CodeDevise",
dataSource: data,
virtual: {
itemHeight: 26,
valueMapper: function(options) {
options.success(data);
}
}