New to Kendo UI for jQuery? Download free 30-day trial

Filter DataSource Manually

The Kendo UI MultiSelect has a built-in detection mechanism that checks whether the data is filtered or not.

The widget uses this information to decide when to persist the selected value that does not exist in the source. When the source is manually filtered, the widget loses the details about the state of the DataSource, which might lead to inconsistent behavior.

The following example demonstrates how to manually filter the dataSource instance of the MultiSelect.

<div id="example">
    <div class="demo-section k-header">
        <select id="multiselect" multiple="multiple"></select>
        $(function() {
            var ms = $("#multiselect").kendoMultiSelect({
                dataTextField: "name",
                dataValueField: "value",
                dataSource: {
                    data: [{ name: "One", value: 1 }, { name: "Two", value: 2 }]

            //Filter the source manually
                field: 'value',
                operator: 'eq',
                value: 1

            <!-- IMPORTANT: Update filter state of the widget -->


See Also

For more runnable examples on the Kendo UI MultiSelect, browse its How To documentation folder.

In this article
Not finding the help you need? Improve this article