valuePrimitive Boolean
(default: false)
Specifies the value binding behavior for the widget when the initial model value is null. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.
Example - specify that the View-Model field should be updated with the selected item value
<input id="multicolumncombobox" data-bind="value: selectedProductId, source: products"
data-columns="[
{ field: 'id' },
{ field: 'name' }
]" />
<script>
$("#multicolumncombobox").kendoMultiColumnComboBox({
valuePrimitive: true,
dataTextField: "name",
dataValueField: "id"
});
var viewModel = kendo.observable({
selectedProductId: null,
products: [
{ id: 1, name: "Coffee" },
{ id: 2, name: "Tea" },
{ id: 3, name: "Juice" }
]
});
kendo.bind($("#multicolumncombobox"), viewModel);
</script>