Page 1 of 1

Lazy FilterEditor

PostPosted: Fri Mar 04, 2016 5:33 pm
by jvxdev
The FilterEditor fires immediately after key was typed. Is it possible to filter e.g. after focus lost or with enter key?

Re: Lazy FilterEditor

PostPosted: Fri Mar 04, 2016 5:42 pm
by Development@SIB
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.