Hi i'm new to flex. i'm using tree component for my screen.  i set the
XMLListcollection to the tree dataprovider. i want to do two things:

1. Add item to the tree at the specified level

2. remove the selected item from the tree.

i tried lot but not working. can any one help me?

For Delete the code is given below:

*var* selectedNode:XML = XML(tree.selectedItem);

*var** tdp:XML = XML(tree.dataProvider);*

*getParentNode(tdp, selectedNode);*

*var** children:XMLList = XMLList(selectedNodeXml.children());*

*for(var** i:int = 0; i < children.length(); i++)*

*{*

*if**(children[...@label == selectedno...@label)*

*{*

*delete** children[i];*

*}*

*}*
**

--
Regards,
Manikandan.S

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.


Reply via email to