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

[Solved] Filter row grid refresh question

4 Answers 167 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 31 Aug 2014, 06:12 AM
I have a grid set up to use a filter row. When I type a character in one of the filter row headers, I can see a query being issued on the server side, complete with the text I'm typing applied as a filter in the query. But the grid doesn't update with the results until the user hits enter in the filter box or the filter loses focus (by tabbing or clicking to another control). In addition, this focus change causes a final query to be sent to the database.

I'd like to either have the grid update as the user is typing (making use of the query that's going out), or only query once, when the user hits the enter key or switches to another control, so that the extra queries aren't creating unnecessary load.

Do you have any ideas as to why the grid doesn't refresh until the enter key is pressed or the text box loses focus? Even though it's issuing queries during the act of typing?

Thanks!

4 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 02 Sep 2014, 10:34 AM
Hi Jon,

The query is done in order to populate the ComboBox used by the filter row. Applying the filter after selecting an item (or losing focus, which triggers the change event) is the expected behavior, however it is possible to update the filter as you type using a custom solution. Here is an example illustrating a possible approach for doing this.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jon
Top achievements
Rank 1
answered on 03 Sep 2014, 03:54 AM
Thanks very much for the reply and suggestions!
0
Willem
Top achievements
Rank 1
answered on 04 Sep 2014, 03:24 AM
Be great if this was an autoFilter config option on the default cell filters. 

Cheers,
Will
0
Alexander Popov
Telerik team
answered on 05 Sep 2014, 12:15 PM
Hi Will,

Thanks for the suggestion! Feel free to submit it as a feature request on our feedback portal.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Jon
Top achievements
Rank 1
Willem
Top achievements
Rank 1
Share this question
or