Treepanel - get child values of selected parent

  1. #1

    Treepanel - get child values of selected parent

    I have a treepanel - how do I get the child values of a selected parent?
  2. #2

    RE: Treepanel - get child values of selected parent

    Just wanted to bump this...
  3. #3

    RE: Treepanel - get child values of selected parent

    Ok - got it with the following - but how can I tweak it to say - only if the parent node is selected - do the following for each child

    
    
    
    function(){
    
    
    var msg = '', selNodes = tree.getChecked();
    
    
    Ext.each(selNodes, function(node){
    
    
    if(msg.length > 0){
    
    
    msg += ', ';
    
    
    }
    
    
    msg += node.text;
    
    
    });
    
    
    Ext.Msg.show({
    
    
    title: 'Completed Tasks', 
    
    
    msg: msg.length > 0 ? msg : 'None',
    
    
    icon: Ext.Msg.INFO,
    
    
    minWidth: 200,
    
    
    buttons: Ext.Msg.OK
    
    
    });
    
    
    }

Similar Threads

  1. Replies: 1
    Last Post: May 29, 2012, 8:51 AM
  2. Replies: 5
    Last Post: Mar 29, 2012, 9:31 PM
  3. Replies: 0
    Last Post: Jun 23, 2010, 3:19 PM
  4. Replies: 6
    Last Post: Feb 01, 2010, 4:30 PM
  5. display issue on Parent/Child window
    By egodoy in forum 1.x Help
    Replies: 1
    Last Post: Mar 24, 2009, 5:02 PM

Posting Permissions