Lazy FilterEditor
2 posts
• Page 1 of 1
Lazy FilterEditor
The FilterEditor fires immediately after key was typed. Is it possible to filter e.g. after focus lost or with enter key?
- jvxdev
- Posts: 19
- Joined: Fri Mar 04, 2016 12:40 pm
Re: Lazy FilterEditor
The FilterEditor has the method: setAutoSearch(boolean). It's enabled by default.
Simply call setAutoSearch(false) and it should work for you.
You should know that the eventFilterValueChanged will be triggered in any case. Use it to validate the filter before applying it manually via applyFilter().
Usually, it's not needed to disable auto-search. Perhaps if your queries are slow. The number of records aren't a problem because of JVx' lazy-loading mechanism. It's recommended to tune the query (index, optimizer hint, ...). But sure, sometimes it's not possible to improve the perfomance.
Simply call setAutoSearch(false) and it should work for you.
You should know that the eventFilterValueChanged will be triggered in any case. Use it to validate the filter before applying it manually via applyFilter().
Usually, it's not needed to disable auto-search. Perhaps if your queries are slow. The number of records aren't a problem because of JVx' lazy-loading mechanism. It's recommended to tune the query (index, optimizer hint, ...). But sure, sometimes it's not possible to improve the perfomance.
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
2 posts
• Page 1 of 1