1 Reply Latest reply on Oct 7, 2008 7:14 AM by Newsgroup_User

    Multiple children in Advanced DataGrid

    SMannava
      Hi,

      I have a collection of nested lists coming back from the Server. I want to display this nested list in the advanced data grid.

      for a node I have three children, How can I mention all those three as children on GroupingCollection object.

      The hirarchy of data I have from the server are...
      ------->Games<List of GameDTOs>
      ' '|------------->GameTurns<List of GameTurnDTOs>
      ' '|--------------------------------------->GameOrders<List of GameOrderDTOs>
      ' '|--------------------------------------->GameBids<List of GameBidDTOs>
      ' '|--------------------------------------->GamePrizes<List of GamePrizeDTOs>

      At the moment I can able to display until this.
      ------->Games<List of GameDTOs>
      |------------->GameTurns<List of GameTurnDTOs>
      |--------------------------------------->GameOrders<List of GameOrderDTOs>

      To achieve thi
      gamesCollection.childrenField = gameTurns
      gameTurnsCollection.children = gameOrders.,,...

      Is there any way of defining or specifying multiple children on the GroupCollection.




      Can any one worked like this before. Please point me to some tips or solutions. I spent lotof time on this. Finally coming to you.

      Thanks


        • 1. Re: Multiple children in Advanced DataGrid
          Level 7

          "SMannava" <webforumsuser@macromedia.com> wrote in message
          news:gcfj2v$a5u$1@forums.macromedia.com...
          > Hi,
          >
          > I have a collection of nested lists coming back from the Server. I want to
          > display this nested list in the advanced data grid.
          >
          > for a node I have three children, How can I mention all those three as
          > children on GroupingCollection object.
          >
          > The hirarchy of data I have from the server are...
          > ------->Games<List of GameDTOs>
          > ' '|------------->GameTurns<List of GameTurnDTOs>
          > '
          > '|--------------------------------------->GameOrders<List of
          > GameOrderDTOs>
          > '
          > '|--------------------------------------->GameBids<List of GameBidDTOs>
          > '
          > '|--------------------------------------->GamePrizes<List of
          > GamePrizeDTOs>
          >
          > At the moment I can able to display until this.
          > ------->Games<List of GameDTOs>
          > |------------->GameTurns<List of GameTurnDTOs>
          >
          > |--------------------------------------->GameOrders<List of GameOrderDTOs>
          >
          > To achieve thi
          > gamesCollection.childrenField = gameTurns
          > gameTurnsCollection.children = gameOrders.,,...
          >
          > Is there any way of defining or specifying multiple children on the
          > GroupCollection.

          Look at groupingFunction. Here's an example:

          http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html