I have a tree which has a filtered collection (and filtered child
collections) as a dataprovider.

When I remove the filter and refresh the collection the tree doesn't
re-draw.

Calling invalidateList from Tree makes it redraw, but it doesn't
create scrollbars even though the list is too long to show. Moreover,
afterwards it seems to behave erratically as if it was in some
inconsistent state, so I've not used this solution.

Changing dataProvider does also redraw the tree, but then open items
and selected items are lost. This is fixable through by keeping track
of the open items and selected item and re-setting them, but the
selected item doesn't get drawn as selected when done at the same time
as changing the dataProvider. This in turn is fixable by doing a
delayed select through a setTimeout.

It works, great, but it's a lot of tape and glue. 
Anyone know a clean proper working solution? 

I've tried invalidating everything through the public API to no avail.


Reply via email to