0 Replies Latest reply on Oct 19, 2010 8:49 AM by krikorherlopian

    treenode collapse button

    krikorherlopian

      public Boolean adviseNodeOpened(UITree tree) {
                      
                         if (!PostbackPhaseListener.isPostback()) {
                              Object key = tree.getRowKey();
                              TreeRowKey treeRowKey = (TreeRowKey) key;
                             
                             
                              if (treeRowKey == null) {
                                 
                                 
                                  tree.queueCollapseAll();
                                 
                                  return Boolean.FALSE;
                             
                             
                          }
                          }   
                            
                          return null;
                     
              }

       

      with this function i collapse the tree.

       

      Problem: when it collapses and i click back on the root node, it expands everythign expanded pre-collapse phase.I want to collapse every node, and not just the first level nodes. How can this be done? thank you.