Kevincosme / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

TreeGrid Bug #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is a bug in the flexlib.TreeGrid control. When I have a node that 
contains more than one nodes each containing at least one leaf then the 
control start to bug.
None of the samples in the TreeGrid_Sample.mxml have such a dataprovider 
so we dont see the bug in the sample application.
But if you provide such a datamodel you will see some leaf jump from one 
node to another, node dissapearing...
Here is an example you can cut and past to reproduce the bug. this example 
uses xml dataprovider but if I provide an array of object the problem is 
the same..

    <mx:XMLList id="xmlDataProvider">
        <node type="A" label="A1">
            <node type="B" label="B1">
                <node type="C" label="C1"/>
            </node>
            <node type="B" label="B2">
                <node type="C" label="C2"/>
            </node>
        </node>
        <node type="A" label="A2">
            <node type="B" label="B3">
                <node type="C" label="C3"/>
            </node>
            <node type="B" label="B4">
                <node type="C" label="C4"/>
            </node>
        </node>
    </mx:XMLList>  

    <flexlib:TreeGrid 
        width="100%" height="100%" headerHeight="0" 
verticalTrunks="none"
        dataProvider="{ xmlDataProvider }"
        disclosureClosedIcon="@Embed
(source='../assets/arrow1.gif')"
        disclosureOpenIcon="@Embed(source='../assets/arrow2.gif')">

        <flexlib:columns>
            <flexlib:TreeGridColumn dataField="@label" 
headerText=""/>
            <mx:DataGridColumn dataField="@type" 
headerText=""  />
        </flexlib:columns>

    </flexlib:TreeGrid>

How to reproduce..
1) open node A1, open node B1 and open node B2
2) close node A1
3) reopen node A1. At this point you will see that the child from node B2 
became child of node B1. Now if I click on B2 the node A2 dissapear...??

Original issue reported on code.google.com by eber...@hralloy.com on 30 May 2007 at 7:07

GoogleCodeExporter commented 8 years ago
note: same as bug ID 14.

Original comment by tica...@gmail.com on 30 May 2007 at 7:39

GoogleCodeExporter commented 8 years ago
check the solution provided by sroset in the comment section

Original comment by tica...@gmail.com on 30 May 2007 at 7:41

GoogleCodeExporter commented 8 years ago
Marked as duplicate of issue 14  (thanks tical88 for pointing that out)

Original comment by darron.schall on 1 Jun 2007 at 12:21

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Dec 2007 at 2:27