0 Replies Latest reply on Apr 16, 2010 2:30 AM by AbhishekSikka

    Tree itemOpen event disable

    AbhishekSikka

      Hi,

       

      Is it possible to not allow expansion or collapse of a node in a tree based on a condition?

       

      My problem is that on click of a tree item I display some text fields corresponding to the clicked item which can be modified by the user and updated. In case the user modifies the fields but doesn't update (click the update button), he shouldn't be allowed to expand/collapse any nodes in the tree. I put a check after the itemOpen even is fired but by the time the program flow reaches the handler function for itemOpen the expansion has already happened.

       

      Any suggestions to prevent this?

       

      Thanks,

       

      Abhishek