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!
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!
5 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 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);
}
}