1 Reply Latest reply on Jan 27, 2009 5:13 AM by Newsgroup_User

    Grouping Collection for List

    Sankar Kethineni
      Hi All,

      Assume that , there is an array collection variable which contains book name and it's author name and it is assigned as a data provider for List.Generally single book may be written by several authors, Now i wanted to group the books by author name using GroupingCollections available in Flex.

      How do i do that?

      And using List we can't display more than one column.So, you candisplay the book name and author's name in one column using vbox or hbox container

      Thanks in Advance

      Here is the sample code for reference........
        • 1. Re: Grouping Collection for List
          Level 7

          "sankar83" <webforumsuser@macromedia.com> wrote in message
          news:glmq74$12l$1@forums.macromedia.com...
          > Hi All,
          >
          > Assume that , there is an array collection variable which contains book
          > name
          > and it's author name and it is assigned as a data provider for
          > List.Generally
          > single book may be written by several authors, Now i wanted to group the
          > books
          > by author name using GroupingCollections available in Flex.
          >
          > How do i do that?
          >
          > And using List we can't display more than one column.So, you candisplay
          > the
          > book name and author's name in one column using vbox or hbox container

          You might find this points you in the right direction:
          http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html

          You also might want to consider using Tree instead of List.

          HTH;

          Amy