Hi try giving a root node inside your xml and open that so others will be not effected. if you want to open open more
try passing more object to openitems array. root only -> open->myroot root and one data child openitems->myroot,data <xml> <myroot> <data/> <data/> <data> <child/> <child/> <child/> <data/> </myroot> </xml> On Wed, Oct 28, 2009 at 2:48 PM, prashant waykar <[email protected]>wrote: > > Hey friends need help.... > I have to diaplay the specific node i.e node (parent 1) children > should be opened... > rest all should be closed...i.e node (child 4) should be closed. > like this should be displayed. > > >Parent 1 > -->Child 1 > -->Child 2 > ---->GrandChild 1 > > -->Child 4 > > > This is my xml .... > > <mx:XMLList id="dp"> > <root> > <node label="Parent 1" isOpen="true"> > <node label="Child 1" /> > <node label="Child 2"> > <node label="Grandchild 1" /> > </node> > > <node label="Child 4" isOpen="true"> > <node label="Grandchild 3"> > <node label="Great-grandchild 1" /> > <node label="Great-grandchild 2" /> > <node label="Great-grandchild 3" /> > <node label="Great-grandchild 4"> > <node label="Great-great-grandchild 1" /> > </node> > <node label="Grandchild 1" /> > </node> > <node label="Grandchild 4" /> > </node> > <node label="Child 5" /> > </node> > </root> > </mx:XMLList> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

