There are no data manipulation APIs on Tree.

 

Typically, you would use ICollectionView APIs to change the data set,
and ITreeDataDescriptor APIs to manipulate how the data set is
interpreted to be hierarchical.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Piero Campanelli
Sent: Monday, April 28, 2008 1:53 AM
To: [email protected]
Subject: [flexcoders] Confusion about Tree component

 

I have a bit of confusion about the Tree control usage. It seems I have
three different APIs that I can use for manipulating nodes and
childrens.

>From what I have understood I can use:

1) Data structure method (for example ArrayCollection). I can manipulate
the source dataProvider and than send itemUpdated() events to the tree
component

2) Data Descriptor (i.e. myTree.dataDescriptor). I can manipulate
methods of this property of the Tree

3) Tree methods. I can manipulate data accessing directly to widget
methods.

Is it correct? What is the best practice to follow?

Thank you

 

Reply via email to