Apply filter Enter key input

0 Answers 8 Views
Filter  Grid
junghoon
Top achievements
Rank 1
junghoon asked on 16 Apr 2024, 10:50 AM
I want the filter to be applied when the Enter key is pressed after entering the filter.
Janki
Top achievements
Rank 4
Bronze
Iron
Iron
commented on 17 Apr 2024, 02:13 PM

+1 for this feature request
Filip
Telerik team
commented on 18 Apr 2024, 10:15 AM

Hello, junghoon,

Can you please provide more information on how you are using filtering, is the requirement to filter the Grid with the Filter component or in some other way? 

A possible approach would be to render a custom filterCell and keep a state variable within the custom cell that will hold the current value of the input and update only that variable within the `onChange` event. I have created an example that showcases this approach here:

https://stackblitz.com/edit/react-yr2h8p-42c2b7?file=app%2Fmain.jsx

Regards,
Filip

No answers yet. Maybe you can help?

Tags
Filter  Grid
Asked by
junghoon
Top achievements
Rank 1
Share this question
or