2 Replies Latest reply on Feb 8, 2009 1:52 AM by kanaran

    Advanceddatagrid Tree

    kanaran
      Hi

      I have advanceddatagrid in which i am displaying the data in Tree structure. Since the data is huge and it is taking lots of time to retrieve from databse, we wanted build the tree dynamically. Means initially we want to display the tree only will the parent nodes. Only when the user expands the parent node, we need to build the children node of this parent node (only when the user expands the parent node, we go to DB and retrieve the children node details). Is it possible to do this with FLEX advanceddatagrid tree structure. First i would like to know, is it feasible to do? if yes, then how to do it. It is very urgent.

      Any help is appreciated. Thanks in advance.
        • 1. Re: Advanceddatagrid Tree
          Level 7

          "kanaran" <webforumsuser@macromedia.com> wrote in message
          news:gmk7fh$9qu$1@forums.macromedia.com...
          > Hi
          >
          > I have advanceddatagrid in which i am displaying the data in Tree
          > structure.
          > Since the data is huge and it is taking lots of time to retrieve from
          > databse,
          > we wanted build the tree dynamically. Means initially we want to display
          > the
          > tree only will the parent nodes. Only when the user expands the parent
          > node, we
          > need to build the children node of this parent node (only when the user
          > expands
          > the parent node, we go to DB and retrieve the children node details). Is
          > it
          > possible to do this with FLEX advanceddatagrid tree structure. First i
          > would
          > like to know, is it feasible to do? if yes, then how to do it. It is very
          > urgent.
          >
          > Any help is appreciated. Thanks in advance.

          I have an example here that uses Tree:
          http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html

          With AdvancedDataGrid, I don't think you can use a DataDescriptor, so you'll
          probably need some code to manage the dataProvider, either by extending or
          wrapping HierarchicalCollectionView.

          HTH;

          Amy


          • 2. Re: Advanceddatagrid Tree
            kanaran Level 1
            Thanks Amy let me try out