This is a migrated thread and some comments may be shown as answers.

initiate the search functionality from outside the grid

3 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Logan
Top achievements
Rank 1
Veteran
Logan asked on 20 Apr 2020, 09:06 PM

Is there a way to programmatically initiate the built in grid search functionality from outside the grid?

I am working on updating a couple of old sites from before kendo had built in search functionality.  I built my own search function and added a text box outside of the grid for the user to search all of the columns.  I would like to switch from my custom search code to the built in grid search, but i need to leave the search ui the same.  

 

TIA,

Logan

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 23 Apr 2020, 05:40 PM

Hello Logan,

See the following example, which demonstrates how an external textbox can be used to search the Grid's columns: https://dojo.telerik.com/obOTIDay/4

Regards,
Ivan Danchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Logan
Top achievements
Rank 1
Veteran
answered on 13 May 2020, 12:00 PM

Thanks! 

This is basically what I am already doing.  I was hoping I could do something that didn't change the column filters in the UI, but now I see that is also how the build in search box works.  

0
Ivan Danchev
Telerik team
answered on 18 May 2020, 10:53 AM

Hello Logan,

Yes, with column filters set searching in the Search panel will change the columns filters, so it is advisable to use column filters and Search panel alternatively. If they are going to be used together, setting a searchField will result in only a single filter being changed, as opposed to all filters.

Regards,
Ivan Danchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Logan
Top achievements
Rank 1
Veteran
Answers by
Ivan Danchev
Telerik team
Logan
Top achievements
Rank 1
Veteran
Share this question
or