[flexcoders] Re: Tree Component openItems and refresh dataProvider issue

2008-09-25 Thread mookie298347
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

[flexcoders] Re: Tree Component openItems and refresh dataProvider issue

2008-09-25 Thread Ivo
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

Re: [flexcoders] Re: Tree Component openItems and refresh dataProvider issue

2008-09-25 Thread Ryan Gravener
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

RE: [flexcoders] Re: Tree Component openItems and refresh dataProvider issue

2008-09-25 Thread Tracy Spratt
@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