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
280
Right click on node in ultra tree view
posted

i have a treenodes.Nodes are on the left side and clicking on it opens a report on the screen. Following are the scenario steps:

1.>when the user clicks on a node. Report opens in the screen.

2>right click on a node. some items displays.

3.>right click on another node same item displays. rather here different items(i.e. item of this particular node) should be displayed.

Context menu is set on mouseDown event and in beforeToolDropDown the pop up menu items are being set.

The right click options are working fine when the report is not opened. But when the report is opened it is taking the items of the report which is being opened not in the node which the user clicks.

I am able to get the node properly and pop up items are being set correctly when i debug and see. But when i remove the break point from beforeToolDropDown  problem arises.

Thanks & Regards,

George

Parents
  • 469350
    Offline posted

    Hi George,

    I'm having a very difficult time understand the question.

    It sounds like you want the tree to respond to a right-click in the same way it does to a click. Or you want the context menu items to know which item was right-clicked. Either way, you need to do something in MouseDown to either activate, select, or record the node that was right-clicked and then use that later when you launch your report. But since I don't know what you are using to determine the node to use to launch the report, it's impossible for me to say exactly which one you need to do.

Reply Children