munky.net

design and open source

DataSet filtering gotchas

| 0 comments

When changing the filter function on a DataSet, it is necessary to set the filtered property to false and then true again in order for the proper modelChanged event to be fired. Just changing the filterFunc property won’t cause the event to be fired.

Also, if there’s already a filter in place when the data loads in (modelChanged/updateAll), the filter won’t be applied until filtered is set to false and then back to true again (even if on immediately successive lines).

Leave a Reply

Required fields are marked *.