Home » Jquery » jquery – kendo ui grid clear select checkbox after serach toobar-Exceptionshub

jquery – kendo ui grid clear select checkbox after serach toobar-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

iam use kendo ui grid ver 2020.1.114 and using the columns.Select()
telerik

but use option

persistSelection: true,
toolbar: [“search”],

when serach toolbar clear all select checkboxes checked
before search

after search

this my code

<div id="example">

  <div id="grid"></div>

  <script>

    $(document).ready(function () {
      $("#grid").kendoGrid({
        dataSource: {
            pageSize: 10,
            transport: {
                read:  {
                  url: "https://demos.telerik.com/kendo-ui/service/Products",
                  dataType: "jsonp"
                }
            },
            schema: {
              model: {
                id: "ProductID"
              }
            }
        },
        pageable: true,
        scrollable: false,
        persistSelection: true,
        sortable: true,
       toolbar: ["search"],
        columns: [
          { selectable: true, width: "50px" },
          { field:"ProductName", title: "Product Name" },
          { field: "UnitPrice", title:"Unit Price", format: "{0:c}"},
          { field: "UnitsInStock", title:"Units In Stock"},
          { field: "Discontinued"}]
      });                  
    });
  </script>
</div>
How to&Answer: