Home - Forums-.NET - FlyTreeView (ASP.NET) - Right click makes context menu disappear?

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Right click makes context menu disappear?
Link Posted: 18-Mar-2009 04:03
Hello

I have a contextmenu who’s command event I use to check which node is selected and I have PostbackOnSelect = true and SelectOnRightClick = true.
However the contextmenu disappears when I right click and I have to right click again for it to appear again.

My question is:
How do I determine which node was right clicked on in the commend event of the  contextmenu without having PostbackOnSelect and SelectOnRightClick = true because this makes the contextmenu disappear.?

Regards
Conrad Pienaar
Link Posted: 18-Mar-2009 10:47
If you mean server side, then FlyContextMenuCommandEventArgs has CommandArgument property, which contains node ID for the node affected.

Also, why do you need PostBackOnSelect? Isn't the FlyMenuItem.AutoPostback what you actually need?