PDA

View Full Version : FiltersFeature Bug



wpichler
14 Jun 2011, 3:00 AM
Hi all,

i discovered a bug with the FiltersFeature in a grid.

Problem was - when settings filters programaticaly (and the user didn't have opened the filter menu before) - then the filter wont get applied right.

I have studied the code - and found that in onMenuCreate it does call the createFilters function - which does create the filter objects. So it is not possible to set filters before the menu is getting generated. So if you place a button to create a custom filter - then it wont work.

I have now commented out the createFilters call in onMenuCreate - and called it directly in the constructor as the last statement. With this change it is working perfectly.

wufpack_jack
16 Jun 2011, 6:53 AM
Problem was - when settings filters programaticaly (and the user didn't have opened the filter menu before) - then the filter wont get applied right.

I'm seeing this too. Not sure if it was in 4.0.1, but I'm seeing it in 4.0.2.