TreeGrid Updated to Flex 2

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!

This entry was posted in Flex. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

5 Comments

  1. Posted October 31, 2006 at 7:11 pm | Permalink

    I can’t open that link.
    Could you please send the source code to me?
    shuishuimu@hotmail.com
    Thanks!

  2. James Ward
    Posted November 1, 2006 at 8:29 am | Permalink

    Are you still having problems with that link? It’s working fine for me.

  3. Posted March 29, 2007 at 8:42 am | Permalink

    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

  4. Posted March 29, 2007 at 8:43 am | Permalink

    //add the rows for the children at this level
    for(var i:Number = 0; i

  5. Ki Park
    Posted January 13, 2009 at 11:09 am | Permalink

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

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Subscribe without commenting

  • About James Ward



    View James Ward's profile on LinkedIn

  • First Steps in Flex by James Ward and Bruce Eckel




  • Twitter Updates


  • Tour de Flex