You might have better luck using some of the TreeDataProvider methods rather than referring to the XML methods directly.  Check for TreeDataProvider in the ASDoc.

 


From: [email protected] [mailto:[email protected]] On Behalf Of riddhima taluja
Sent: Thursday, March 09, 2006 10:15 PM
To: [email protected]
Subject: RE: [flexcoders]To disable the nodes of a Tree..

 

Hi Tracy,

Still I am facing the same problem,

i tried it like this:--

 

function setValue(item,state) {

super.setValue(item,state);

mx.core.Application.alert(""+item,'item');

for(var initValue=0; initValue<item.length;initValue++)

{

if(item.attributes.isGrayed==true)

{

var rowNo:Number;

rowNo=(item.getCellIndex());

disableNode(rowNo);

//item.enabled=true;

//item.

}

else

{

mx.core.Application.alert(""+item.attributes.isGrayed,'else');

}

}

function disableNode(node:Number) {

item.rows[node].enabled=true;

item.rows[node].

}

}

 

It is getting the par! ameter 'item' as attached in the image file, after that it is not moving inside the loop and no other operation is performed.

Any more suggestions!!


Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to