• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 458
  • Last Modified:

Tree Cell Rendering : How ? (Flash MX 2004)

Hi,

I want to develop a Tree Cell Renderer which, when a cell is selected, would uncover a Tree Control. I want to use this like a 'drill down' tool, which would populate at run-time from data of a Web Service at the database end.

I have the WebService ready and the datagrid works perfectly with default data formats.. now what if i had to implement a Tree in each cell of a column..how should i do that? Any help would be greatly appreciated !!

Ideally this (tree in each cell) would just show the top-level node and not populate it unless clicked ofcourse.

I also presume that I should be using some kind of "expansion in place" user interface pattern. I request any kind of pointers on how I should go about the tree rendering, ...just any info would help!!

Thanks.


P.S:- I believe the basic Cell Renderer class would contain the following code: am i right?

class TreeCellRenderer extends UIComponent {

         var tree : MovieClip;

         function createChildren(Void) : Void {
     tree = createClassObject(CheckBox, "tree", 1, {styleName:this, owner:this});
     tree.addEventListener("click", this);
     }


         function setValue(str:String, item:Object, sel:Boolean) : Void {
     tree.dataProvider = "{xmldatamodel}";
                // Where xmldatamodel is a mx:xml tagged model to populate tree statically just for testing
     }

}
0
pampadevelopers
Asked:
pampadevelopers
1 Solution
 
nishasrilankanCommented:
trye this link..
http://philflash.inway.fr/treeedrd/treeedrd.html

this page in French...I used google's translated page..
0
 
pampadevelopersAuthor Commented:
Thanks nishasrilankan!! that was exactly what I was looking for. :)
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now