2 Replies Latest reply on Dec 21, 2010 11:42 PM by Redade

    Dynamic DataGroup in Datagroup

    Redade

      I am trying to create datagroups in datagroups at runtime.

      For example:

      there are 3 (could be 5 or 1) categories in pictures session,

      1. has 6 albums (changeble)

      2. has 4 albums (changeble)

      3. has 8 albums (changeble)

       

      i need to create 3 panels first and after that i need to create 6 subpanels in 1. panel, 4 subpanels in 2 panel and 8 subpanels in 3. panel.

       

      I tried so many ways but i couldnt make it work.

       

      any Help ?

       

       

      sample:

      panel - main panel there is only one

           datagroup - categories data group

                itemrenderer

                     component

                          itemrenderer

                               panel - categories panel (changeble count) so i m suing datagroup and itemrenderers here

                                    datagroup - albums datagroup

                                         itemrenderer

                                              component

                                                   itemrenderer

                                                       panel - albums panel (changeble count) so i m suing datagroup and itemrenderers here

       

      i need to create this scheme at runtime...

        • 1. Re: Dynamic DataGroup in Datagroup
          UbuntuPenguin Level 4

          Yo dawg,

            I heard you like itemrenderers, so I put an itemrenderer in your itemrenderer so you can render while you render...

          • 2. Re: Dynamic DataGroup in Datagroup
            Redade Level 1

                      itemrenderer

                           component

                                itemrenderer

                                     panel - categories panel (changeble count) so i m suing datagroup and itemrenderers here

                                          datagroup - albums datagroup

                                               itemrenderer

                                                    component

                                                         itemrenderer

             

            As you can see i m using itemrenderer inside the other one. But in this way i couldnt set data to the inside renderer. I am watching the arraylists, till it came to the second itemrenderer everything is ok but when it came to second one, arraylist is empty always. So the second datagroup does not create related itemrenderers.