[CLOSED] Check node count after applying filterBy for TreePanel

  1. #1

    [CLOSED] Check node count after applying filterBy for TreePanel

    I need to get count of visible nodes after applying filterBy for TreePanel
    Last edited by Daniil; Jul 16, 2012 at 9:48 PM. Reason: [CLOSED]
  2. #2
    Hi,

    This way:

    Example
    var count = 0;
    TreePanel1.getRootNode().cascade(function (node) {
        if (!node.hidden) {
            count++;
        }
    });
    alert(count);

Similar Threads

  1. Replies: 0
    Last Post: Aug 09, 2012, 8:30 AM
  2. How to get treegrid total node count.
    By bjones in forum 1.x Help
    Replies: 3
    Last Post: Jan 11, 2012, 5:42 PM
  3. [CLOSED] TreePanel.FilterBy
    By Marcelo in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 28, 2011, 6:43 PM
  4. [0.8] TreePanel FilterBy
    By ararotti in forum 1.x Help
    Replies: 2
    Last Post: Jan 23, 2011, 6:07 AM
  5. [CLOSED] [1.0] TreePanel FilterBy
    By ashton.lamont in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 18, 2010, 7:04 PM

Posting Permissions