[CLOSED] TreePanel RootVisible Question

  1. #1

    [CLOSED] TreePanel RootVisible Question

    Is there some way to dynamically hide/show the root node after it's been initially set to RootVisible=false? I would like to show the root node after all children have been removed from the tree. I would like to do this via client side and not have to hit the server.
    Thanks
  2. #2

    RE: [CLOSED] TreePanel RootVisible Question

    Hi,

    Unfortunately the root can be displayed if RootVisible="false" because root node creates without UI provider. UI provider can't be added/removed *after node creation.


    You can try to create fake node if root have no children and remove this node when any node will be added.


  3. #3

    RE: [CLOSED] TreePanel RootVisible Question

    I was thinking that might be the case. Fake node it is. thanks!

Similar Threads

  1. [CLOSED] [1.3] Problem with rootVisible on TreePanel
    By John_Writers in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 02, 2012, 7:46 AM
  2. [CLOSED] TreePanel RootVisible
    By pdcase in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 29, 2010, 9:12 PM
  3. Excuse Me ,another question about treepanel
    By Fabrizio in forum 1.x Help
    Replies: 2
    Last Post: Dec 18, 2009, 6:40 PM
  4. [CLOSED] TreePanel question
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 14, 2009, 2:42 PM

Posting Permissions