Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1745
How do I prevent the Expand/Collapse that occurs when i right click a node
posted

I display a context menu (using MouseUp) when the user right clicks a node.

But before the menu displays, the node expands or collapses.
I ONLY want the menu to display. How to I stop the automatic Toggle expansion?

(At first I thought I was doing something in my app but I created a simple app with no code except the creation/loading of the Tree and that does the same thing.)  

Parents
  • 23930
    Offline posted

    Hello,

    I tried to reproduce the issue using Volume 13.2 and everything is working correctly. I put a new menu and the menu pops up when you press the right click and no nodes are expanded. Can you please confirm that you have bound the menu to the right mouse click event? What version of our products do you use?

    Please take a look at my sample and modify it so that it reproduces your issue.

    WT_PreventNodeFromExpanding.zip
Reply Children