0 Replies Latest reply on Dec 6, 2006 6:22 AM by charles.crepin

    Tree component: nodeOpen event.

    charles.crepin Level 1
      Hello,
      I am looking for a way to act before a tree branch is expanded (when user clicks the disclosure icon of a closed branch). My objective is to prevent the expansion (if the right password is not supplied). There is an example of what I mean at develapsetech.ca:8006 Click English then expand the IT node, try to expand the grayed Other Viewable Types node, it will ask you for a password (which is Servier). But you will be able to see the opened branch for half a second.

      I use a listener for the nodeOpen event but it is already too late in my case, even if the first thing I do is to collapse the node I can still see it's content for a fraction of a second.

      I am sure there is a way to achieve this, someone has an idea?