Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Listgrid GroupTree openAll not working as expected ?

    Hi,

    I see that Listgrid.getGroupTree().openAll() does not result in the opening of the grouped rows. Is there any other way to achieve opening all grouped rows in a listgrid ?

    Thanks.

    #2
    when openAll is called the children are presented but folder childern doesn't have the 'plus' sign, the user isn't able to open the children folder.

    Any idea?

    Comment


      #3
      listGrid.groupStartOpen controls which groups are initially open - use this property instead of a manual call to openAll(). The problem you're seeing is most likely caused by calling openAll() at an inappropriate time (eg, group tree has not been formed yet).

      Comment


        #4
        Hello Isomorphic,

        I'm facing a similar issue today where I'm calling listGrid.getGroupTree().openAll(). It works at one place in my code, but doesn't work at other.

        So, it does seem to be a timing issue like you mentioned. You said "group tree has not been formed yet". Is there an event that I can look for to check that the group tree has formed?

        Thanks for your help.

        Comment


          #5
          Here's my code which doesn't work. I thought it would work when user manually selects the "Group by" option from the Header Context Menu on a particular field in the list grid.

          Code:
                  listGrid.addGroupByHandler(new GroupByHandler() {
                      
                      public void onGroupBy(GroupByEvent event) {             
                          
                          Tree tree = listGrid.getGroupTree();
          
                          if (tree != null)
                          {       
                              tree.openAll();                       
                          }
                      }
                  });

          Comment

          Working...
          X