I am looking for a solution to the same issue. As far as I understand
it the problem is that the new dataProvider elements are assigned
different UIDs from the UIDs stored in your openItems array. The UIDs
assigned to the old dataProvier are different than the UIDs assigned
to the new
Are you resetting the data provider or just updating it? I find that
if I just update the data provider by inserting/removing elements the
Tree reflects the change appropriately.
One bug I've hit, which might be what you are experiencing, is that if
I remove the Tree from the stage and add it
override the set dataProvider;
then store the openitems, selecteditems, etc...
call
super.dataProvider = provider;
openItems=storedOpenItems;
validateNow();
selectedItems=storedSelectedItems;
validateNow();
as for amf calls, I have a method which gets the instance from the
dataprovider
and adds
@yahoogroups.com
Subject: Re: [flexcoders] Re: Tree Component openItems and refresh
dataProvider issue
override the set dataProvider;
then store the openitems, selecteditems, etc...
call
super.dataProvider = provider;
openItems=storedOpenItems;
validateNow();
selectedItems=storedSelectedItems;
validateNow
4 matches
Mail list logo