Instead of setting item.enabled, which is the dataProvider item, shouldn’t you set this.enabled (this being the current row of the control)?

Tracy

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of riddhima taluja
Sent: Wednesday, March 08, 2006 2:50 AM
To: [email protected]
Subject: [flexcoders]To disable the nodes of a Tree..

 

Hi All,

I am receiving an xml to display the tree...each node contains an attribute isGrayed=true/false.

If this attribute is true, i have to disable that node for any other operation.

I am using a rowRenderer class for the same.The function setValue() is written as follows:-

var initValue = 0;

function setValue(item,state)

{

super.setValue(item,state);

for(initValue; initValue<=0;initValue++)

{

if(item.attributes.isGrayed==true)

{

item.enabled=true;

item.>

}

}

}

But this doesn't seem to work,,,,Any Suggestions?

 

Riddhima.


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