Results 1 to 3 of 3

Thread: Collapse a node in a treeGrid recursivly

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default Collapse a node in a treeGrid recursivly

    Hi,<br>I have a question, how can i collapse a node in a treeGrid with all there childrens recursivly ( if a children was also expended, he have to be collapsed).<br>I use treeGrid.setExpended(parent, false, true), but seem not working, juste childrens in the first level are collapsed, there childrens are note and i have a bug in result. Any help plz<br>Thanks

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default

    I resolve the problem, but now, i have an other problem with this code snippet:$
    Code:
    treeGrid.setExpended(node, false, true);
    treeGrid.setExpended(node, true, false);
    Im doing so to collapse and expend a node, But it's not Work, i can't see the action of collapsing and expending.

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

    What do you mean you can't see the action of it? Is it not happening? Or that you expect it to do something else?

    From your description, only the first line is correct - collapse the node deeply (i.e. collapse all sub-nodes). This is how the treeGrid.collapseAll() method works - it calls setExpanded(child, false, true); on each child, which appears to work on http://www.sencha.com/examples/#Exam...:basictreegrid

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •