JQuery Grid Filter. Reduce "multi" filter values to only those that exist in the grid

1 Answer 45 Views
Filter Grid
Daniel
Top achievements
Rank 1
Iron
Daniel asked on 16 Nov 2023, 08:26 AM

Hi!

I'm using a Grid with a key-based field  with a large list of values.
It works Ok, but when i want to filter by this field, (multi filter) appears hundreds of possible values.

¿Can I reduce the filter values to only existing options in grid elements?

Here is the example:
https://dojo.telerik.com/@larras/atuFikoP

The filter for field country allows all possible values, buy I want to limit the filtering options to the two countries that appear in the grid.

I have tried to use a new reduced collection for values, but in this case, when I add a new row, the country column has not text value and shows the id number.

¿Is possible to change dinamically the "multi" filter collection of values?

Thanks  and greetings!

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 21 Nov 2023, 07:19 AM

Hello, Daniel,

Please refer to this How-To article which shows how to achieve the requirement.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Daniel
Top achievements
Rank 1
Iron
commented on 21 Nov 2023, 08:05 PM

Thank you, this solved my problem.
Tags
Filter Grid
Asked by
Daniel
Top achievements
Rank 1
Iron
Answers by
Martin
Telerik team
Share this question
or