Yes let me explain in breif
for example my xml format looks this like this
<list>
  <node lable="sales" type="department">
    <node lable="emp1" type="employee" department="sales" 
mailid="[EMAIL PROTECTED]"/>
  </node>
<node lable="support" type="department">
    <node lable="emp2" type="employee"/>
  </node>
</list>

on tree change event I got to dispaly its properties in the right 
pane. Now my problem is I have lot of properties to be displayed and 
the properties vary depending on the node type, so is there any way 
to bind any object to the particular node in which I can store and 
retrive(properties) data I tried using

<list>
  <node lable="sales" type="department">
    <node lable="emp1" >
         <depatment>sales</department>
         <mail>[EMAIL PROTECTED]</mail>
</node>
  </node>
<node lable="support" type="department">
    <node lable="emp2" type="employee"/>
  </node>
</list>


but not luck the properties are getting displayed as a leaf any idea.

Thanks


--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Tree.selectedItem?
> 
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of madhavipdm
> Sent: Monday, August 27, 2007 9:20 PM
> To: [email protected]
> Subject: [flexcoders] Bind data with tree node
> 
>  
> 
> Hello,
> 
> I am used XMLListCollection as dataProvider for mx:tree componnet 
the 
> tree is dispalying fine but I have some properties related to the 
nodes 
> when the node is selected the data should be displayed on to right 
> panel. so how can I bind the data to the node.
> 
> Thanks
>


Reply via email to