Specific Tree nodes not getting selected (while the tree is a part of mxml Module)


i'm using mx:tree component load static xml data bring in tree form. i'm having hdivided box left side portion have tree , right side major portion border container flex iframe component in it.

 

 

on creationcomplete event, i'm assigning dataprovider of tree component static xml data. tree loaded xml data. if select particular leaf node in tree, right side portion(i.e iframe inside border container) should loaded html content corresponding selected node data. no issues in that.

 

 

the problem have after load flex module,

 

 

step 1 :

 

 

without selecting of top nodes, i'm selecting (clicking) node e1 under e. corresponding html content loaded smoothly.

 

 

step 2:

 

 

then, if select d2 node under d branch, selection of d2 not happening , retaining e1 itself. obviously, itemclick handler have selected item e1 , same e1 content loaded again.

 

 

the selection not changing d2.

 

 

rather, if select other node d2, d1, c1, c2 etc, selection of node changes , corresponding node's html content loaded properly.

 

 

why selection not change ? last node in tree having issue ?

 

this actual code used in application. identify issue, have removed other components excluding tree component.

 

testmodule.mxml

 


<?xml version="1.0" encoding="utf-8"?> <mx:module xmlns:fx="http://ns.adobe.com/mxml/2009"             xmlns:s="library://ns.adobe.com/flex/spark"             xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute" width="100%" height="100%">     <fx:declarations>           <fx:xml id="data" source="/xml/test.xml"/>     </fx:declarations>       <fx:script>         <![cdata[             import mx.collections.xmllistcollection;             import mx.events.flexevent;               [bindable]             private var treedata:xmllistcollection;           ]]>     </fx:script>           <mx:tree id="trendstree"                   width="50%" height="50%"                   labelfield="@label"                  dataprovider="{data}"                  horizontalcenter="0" verticalcenter="0"                  showroot="false"/> </mx:module>  

 

test.xml

 


<root>       <a label="a">         <menu label="a1" />         <menu label="a2" />         <menu label="a3" />         <menu label="a4" />     </a>     <b label="b">         <menu label="b1" />         <menu label="b2" />         <menu label="b3" />     </b>     <c label="c">         <menu label="c1" />         <menu label="c2" />         <menu label="c3" />     </c>     <d label="d">         <menu label="d1" />         <menu label="d2" />     </d>     <e label="e">         <menu label="e1" />     </e>   </root>  

is forum actively being used experts / developers / public ???

 

anyone kindly please let me know via same post.

 

i have posted 4-5 questions... out of 5, got answer 1 question.



More discussions in Flex SDK


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account