Declined
Last Updated: 21 Jul 2022 10:08 by ADMIN
Julien
Created on: 19 Jul 2022 11:45
Category: Kendo UI for Angular
Type: Feature Request
0
Provide a way to have a global search on Grid

Hi,

Currently, it seems impossible to have a global search field that look up into a given number of columns.

The idea would be to: either have a bindable property (like "searchString"), either having just an option to activate a "global search"(and you would add the search component).

It would also be required to be able to provide a list of "fields" to search in.

Obviously, when the search string change, it should reset the paging.

 

It's something we have to implement again every time we use your Grid(and it's quite hard to make a wrapping component because there is a lot of things to customize. You can check how the global filter is implemented: PrimeNG (primefaces.org)

1 comment
ADMIN
Dimiter Topalov
Posted on: 21 Jul 2022 10:08

Hi Julien,

Thank you for logging this feature request, but we will have to decline it for the following reasons:

Creating such a search functionality as a built-in feature does not seem feasible for the Grid component, as it data binding and processing specifics are such that the component is agnostic of where its data comes from. The Grid relies on emitting suitable events upon user interaction which expose all necessary data to allow the developer to process the data accordingly:

https://www.telerik.com/kendo-angular-ui/components/grid/data-operations/#toc-handling-data-operation-events

https://www.telerik.com/kendo-angular-ui/components/grid/data-binding/remote-data/#toc-using-manual-binding

Creating a global search field is possible through a custom implementation based on placing an Input element either in the Grid Toolbar template, or any other desired location, handling its input/change event, and processing the Grid data accordingly. The Grid Overview documentation page example demonstrates a possible implementation of this approach:

https://www.telerik.com/kendo-angular-ui/components/grid/

Regards,
Dimiter Topalov
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/.