Edit this page

Define Checkbox Filtering with Search Box in Grid

Environment

Product Progress Kendo UI Grid
Progress Kendo UI version Created with the 2017.3.1018 version

Description

How can I show a search box when the checkbox filtering of a Kendo UI Grid is enabled?

Solution

  1. Set the columns.filterable.multi configuration to true.
  2. Set the columns.filterable.search configuration to true.
<div id="example">
    <div id="grid"></div>

    <script>
        $(document).ready(function() {
            $("#grid").kendoGrid({
                dataSource: {
                    type: "odata",
                    transport: {
                        read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Orders"
                    },
                    schema: {
                        model: {
                            fields: {
                                OrderID: {
                                    type: "number"
                                },
                                ShipCountry: {
                                    type: "string"
                                },
                                ShipName: {
                                    type: "string"
                                },
                                ShipAddress: {
                                    type: "string"
                                }
                            }
                        }
                    },
                    pageSize: 30,
                    serverPaging: true,
                    serverFiltering: true,
                    serverSorting: true
                },
                height: 550,
                sortable: true,
                filterable: true,
                columnMenu: true,
                pageable: true,
                groupable: true,
                columns: [{
                    field: "OrderID",
                    title: "Order ID",
                    width: 120,
                    filterable: {
                        multi: true,
                        search: true
                    },

                }, {
                    field: "ShipCountry",
                    title: "Ship Country",
                    filterable: {
                        multi: true,
                        search: true
                    }
                }, {
                    field: "ShipName",
                    title: "Ship Name",
                    filterable: {
                        multi: true,
                        search: true
                    }
                }, {
                    field: "ShipAddress",
                    filterable: false,
                    filterable: {
                        multi: true,
                        search: true
                    }
                }]
            });
        });
    </script>
</div>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy