[CLOSED] Treepanel show/hide childnodes

  1. #1

    [CLOSED] Treepanel show/hide childnodes

    Hi,

    Related to this thread http://forums.ext.net/showthread.php...S-getUI-method, I must port to Ext.NET 2.1 the following:

    myFunction: function (id) {
            treePanel.collapseAll();
    
            for (var i = 0; i < treePanel.getRootNode().childNodes.length; i++) {
                if (id == 0) {
                    //Todos los elementos
                    treePanel.getRootNode().childNodes[i].getUI().show();
                }
                else {
                    if (parseInt(treePanel.getRootNode().childNodes[i].id, 10) != parseInt(id, 10))
                        treePanel.getRootNode().childNodes[i].getUI().hide();
                    else
                        treePanel.getRootNode().childNodes[i].getUI().show();
                }
            }
        }
    Like we know, getUI method doesn't exists, how can I show/hide childNodes now?
    Last edited by Daniil; Aug 28, 2012 at 1:05 PM. Reason: [CLOSED]
  2. #2
    Hi,

    It is related to the CHANGELOG item #76.
    https://examples2.ext.net/#/Getting_...nts/CHANGELOG/

    Seems we have the functionality in Ext.NET for filtering which allows to hide a node this way:
    node.set("hidden", true);
    and show
    node.set("hidden", false);
  3. #3
    Oh yes, sorry for the inconvenience

    Thanks!

Similar Threads

  1. Show/Hide fieldset
    By JosefTrbusek in forum 2.x Help
    Replies: 2
    Last Post: Aug 03, 2012, 7:04 AM
  2. [CLOSED] [1.0] Window show / hide from JS
    By Patrick in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 25, 2010, 10:44 AM
  3. [CLOSED] show and hide tabs
    By sharif in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 12, 2010, 3:31 PM
  4. Show/Hide tabs
    By stone216 in forum 1.x Help
    Replies: 2
    Last Post: Oct 01, 2009, 8:21 PM
  5. How to hide/show ImageButton in JavaScript?
    By dbassett74 in forum 1.x Help
    Replies: 2
    Last Post: Jun 16, 2009, 3:47 PM

Tags for this Thread

Posting Permissions