virtual.mapValueToString
(default: "index")
The changes introduced with the Kendo UI R3 2016 release enable you to determine if the valueMapper
must resolve a value to an index
or a value to a dataItem
. This is configured through the mapValueTo
option that accepts two possible values - "index"
or "dataItem"
. By default, the mapValueTo
is set to "index"
, which does not affect the current behavior of the virtualization process.
For more information, refer to the article on virtualization.
Example
<input id="multicolumncombobox" />
<script>
$("#multicolumncombobox").kendoMultiColumnComboBox({
virtual: {
mapValueTo: "dataItem",
valueMapper: function(options) {
// implement value mapping logic
options.success([]);
}
},
dataTextField: "text",
dataValueField: "value",
dataSource: {
transport: {
read: function(options) {
// simulate large dataset
var data = [];
for(var i = 0; i < 10000; i++) {
data.push({ text: "Item " + i, value: i });
}
options.success(data);
}
}
},
columns: [
{ field: "text", title: "Text" },
{ field: "value", title: "Value" }
]
});
</script>
In this article