Custom Search bar not able to search but kendo search bar works ?

1 Answer 52 Views
Grid
ting
Top achievements
Rank 1
ting asked on 13 Jan 2022, 02:16 PM

Hi i got some trouble for searching in my search bar where kendo grid search function work

This is kendo grid search bar where it work in searching

enter image description here

Input search is not working when searching

enter image description here

This is input search code that i link to kendogrid

 

$("#search-user-name").on("keyup change", function() {
  var grid = $("#user-list").data("kendoGrid");
  grid.dataSource.filter({
    logic: 'contains',
    filters: [{
      field: "username",
      operator: "contains",
      value: $(this).val()
    }]
  });
});
<input class="search-input form-control" placeholder="Name" type="text" name="User Name" id="search-user-name">

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 18 Jan 2022, 09:59 AM

Hi Ting,

I just tested the code you shared for filtering a grid column from an external input. It seems to be working correctly. Please refer to the following Dojo demo I prepared:

Additionally, If you need to filter all Grid columns with a single input you can check out the following article demonstrating this:

https://docs.telerik.com/kendo-ui/knowledge-base/filter-all-columns-with-one-textbox

Let me know if you have any questions.

Regards,
Nikolay
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
ting
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or