Value
methodsGets or sets the value of the MultiSelect.
Important: If there are no items, the value method will pre-fetch the data before continue with the value setting.
Important: The widget will clear the applied filter if a new value is set. Thus it ensures that the original/whole data set is available for selection.
Important: This method does not trigger change event.
This could affect MVVM value binding. The model bound to the widget will not be updated.
You can overcome this behavior by triggering the change event manually using trigger("change") method.
<select id="multiselect" multiple="multiple">
<option>Item1</option>
<option>Item2</option>
</select>
<script>
$("#multiselect").kendoMultiSelect();
var multiselect = $("#multiselect").data("kendoMultiSelect");
multiselect.value("Item1");
multiselect.trigger("change");
</script>
Parameters:valueArray|String
Returns:Array
The value to set. A String value or an Array of strings is accepted. To clear the value, pass an empty array.
The value of the MultiSelect.