Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3320278
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:55:28+00:00 2026-05-17T22:55:28+00:00

I have a tree and a combo box. I need to get the immediate

  • 0

I have a tree and a combo box.

  1. I need to get the immediate children of node 1 and place them in the combo box.

  2. When a node is selected from the combo box list, the tree should display only that node and its children.

Basically, the combo box serves as a filter to show only a specific node. All the nodes except from the selected one are hidden.

Any help will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:55:28+00:00Added an answer on May 17, 2026 at 10:55 pm

    Look up the filtering functionality in Ext JS API documentation. On the top-left “Find a Class” you get to filter the tree by an input string. I think what you want to do is quite similar to that:

    http://dev.sencha.com/deploy/dev/docs/

    Scroll down to filterTree function in:
    http://dev.sencha.com/deploy/dev/docs/resources/docs.js

    filterTree: function(t, e){
        var text = t.getValue();
        Ext.each(this.hiddenPkgs, function(n){
            n.ui.show();
        });
        if(!text){
            this.filter.clear();
            return;
        }
        this.expandAll();
    
        var re = new RegExp('^' + Ext.escapeRe(text), 'i');
        this.filter.filterBy(function(n){
            return !n.attributes.isClass || re.test(n.text);
        });
    
        // hide empty packages that weren't filtered
        this.hiddenPkgs = [];
            var me = this;
        this.root.cascade(function(n){
            if(!n.attributes.isClass && n.ui.ctNode.offsetHeight < 3){
                n.ui.hide();
                me.hiddenPkgs.push(n);
            }
        });
    },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK So I have a combo box which selects an administrator from a list
I have a JComboBox which contains an MRU list combo-box and a for a
I have a tree in flex built from an XML document into an XMLlist
I have a tree data structure that is L levels deep each node has
I have a tree like structure roughly like this: class Node < ActiveRecord::Base belongs_to
i have tree node in my app that was created by dynamically.when right click
I have a tree structure in MySQL using a parent_id field for each node.
I have tree control object created using CTreeCtrl MFC class. The tree control needs
I have tree tables, Customer, Invoice and InvoiceRow with the standard relations. These I
I have a tree structure in memory that I would like to render in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.