Results 1 to 4 of 4

Thread: Find all nodes with some attribute in a TreePanel

  1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    35

    Default Find all nodes with some attribute in a TreePanel

    Hi,

    I need a simple feature on my TreePanel but couldn't manage to find/make it. I just want to toggle hiding some of the rendered nodes, and for that I need to find each node with a "hidden" attribute set to true.
    I tried to use the TreePanel "findBy" method, but it doesn't seem to look at the nodes.

    Any idea ?
    Thanks

  2. #2
    Sencha User
    Join Date
    Jun 2008
    Posts
    35

    Default

    I finally used Ext.DomQuery to retrieve elements I needed.
    Anyway I don't like this solution so if anyone has better, I'm still interested.

    Thanks.

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    You could have used treePanel.getRootNode().cascade().

  4. #4
    Sencha User
    Join Date
    Jun 2008
    Posts
    35

    Default

    You mean cascade i guess

    Exactly the method I looked for. Yet I did look at each one, but missed this one.

    Thanks Condor !

Similar Threads

  1. Replies: 2
    Last Post: 12 Apr 2010, 6:03 PM
  2. Changint an attribute of a TreePanel 'afterrender'
    By dana.lees in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 3 Sep 2009, 2:27 AM
  3. How to find a Element with attribute value "type1,type2" ?
    By tomcheng76 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 2 Sep 2009, 9:27 PM
  4. [TreePanel] Very heavy with TreePanel with Many nodes
    By raby in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 22 Mar 2009, 6:32 PM
  5. TreePanel node's getting the wrong id attribute
    By blixa in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 19 Apr 2007, 7:26 AM

Posting Permissions

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