Lazy FilterEditor

General questions regarding the development with ProjX.

Lazy FilterEditor

Postby jvxdev » Fri Mar 04, 2016 5:33 pm

The FilterEditor fires immediately after key was typed. Is it possible to filter e.g. after focus lost or with enter key?
Posts: 19
Joined: Fri Mar 04, 2016 12:40 pm

Re: Lazy FilterEditor

Postby Development@SIB » Fri Mar 04, 2016 5:42 pm

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.
User avatar
Posts: 311
Joined: Mon Sep 28, 2009 1:54 pm

Return to Development