This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

FilterEditor manual filtering

General questions regarding the development with ProjX.

FilterEditor manual filtering

Postby johnit » Tue Dec 18, 2018 4:38 pm

The FilterEditor automatically sets a filter on value change!

Is it possible to stop automatic filtering and do some extra tasks after value changed, e.g. set additional filters or show an information message?
johnit
 
Posts: 34
Joined: Fri Nov 16, 2012 5:58 pm

Re: FilterEditor manual filtering

Postby Support@SIB » Tue Dec 18, 2018 5:05 pm

Yes, this is not a problem. Simply disable automatic search, e.g:

Code: Select all
filterEditor.setAutoSearch(false);

This prevents the specific filter editor from filtering, after value changes. But be careful, if you have multiple editors with different auto-search setting, a FilterEditor with auto-search will include the non auto-search editor.

The value changed event of the FilterEditor will be fired in any case. This event can be used to implement custom features like showing an information.

If you want to apply the filter manually, simple call

Code: Select all
FilterEditor.applyFilter(databook);

or

Code: Select all
filterEditor.applyFilter();
User avatar
Support@SIB
 
Posts: 293
Joined: Mon Sep 28, 2009 1:56 pm


Return to Development