UPDATE: I recommend using the AdvancedDataGrid control in Flex 3 and Flex 4.
Huge thanks to Latha for updating my old Flex 1.5 TreeGrid code to Flex 2:
http://codercentral.blogspot.com/2006/10/using-treegrid-in-flex-20.html
Check out a demo of Latha’s work:
Looks like I’m off the hook! :) Thanks Latha!


12 Comments
I can’t open that link.
Could you please send the source code to me?
shuishuimu@hotmail.com
Thanks!
Are you still having problems with that link? It’s working fine for me.
Hi James,
I my Xcelsius2008 S/W I have a Tree component Addon.I worked on XtreeGrid component from there but the problem is I could not able to see the arrow symbol at run-time but it was showing me at design time.So Could you please give me the suggestions on this.
The AdvancedDataGrid is a better way to do this. Would that work for you?
Thank you for your reply James..
I am getting the same problem like Mr. Kiran, could you please elaborate little bit more on this like
1) How do I get AdvanceDataGrid component ? its free or i have to buy it
2) In the last you have posted one link, i am really fascinated to see that stuff, but how do I use this in my Xcelsius please throw some light as well.
Will really appreciate your quick reply on that
Hi James,
I found your treeGrid component a few days ago and it was all what i need !
I use the version for flex 2 updated by Latha.
But I found a little bug in the ‘openItem’ function.
When you open items until 3rd level, then close first level and open it again the sublevels arn’t displayed properly.
Here’s the ‘openItem’ function corrected :
———————–
private function openItem(item:TreeNodeVO, indexNum:Number):Number{
var root:ArrayCollection = parentApplication.dp;
var nbRowsDisplayed:Number = 0;
//add the rows for the children at this level
for(var i:Number = 0; i
//add the rows for the children at this level
for(var i:Number = 0; i
private function openItem(item:TreeVO, indexNum:Number):void
{
…
for(var j:Number = 0; j < item.childList.length; j++)
{
var nListTop :int = root.getItemIndex(item.childList[j]);
if (item.childList[j].isOpen)
{
openItem(item.childList[j], nListTop);
}
}
Hi James,
I’m fairly new to Xcelsius and exactly looking for something like your treegrid. I downloaded it, but can’t seem to get to work. Could you send me an Xcelsius example where your tree is applied?
Also: it seems there’re some additions/corrections to the original: is there a final version where all this is included?
Many thanks,
Erik
Check out the AdvancedDataGrid:
http://www.adobe.com/devnet/flex/tourdeflex/web/#docIndex=0;illustIndex=0;sampleId=70030
Hi, Thanks for the link but could you please explain us how to use this Xcelsius, I dont know flex developing..
Regards.
I’m not sure. You might want to check out:
http://everythingxcelsius.com/tag/flex
And to learn Flex check out:
http://developer.adobe.com/flex