Home - Forums-.NET - FlyTreeView (ASP.NET) - ** Select Node on Right-click **

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

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

** Select Node on Right-click **
Link Posted: 01-Feb-2008 05:54
Is it possible to have a FlyTreeView node selected on mouse right-click?
Link Posted: 01-Feb-2008 07:21
As far as I know, it does so.
At least for the current version:
http://www.9rays.net/asp.net_2/treeview/Demo_Office2003.aspx
Link Posted: 01-Feb-2008 09:42
I am using FlyTreeView for ASP.NET 2.0 v4.3.1.139. Is this the current version?

we use node.NavigateUrl to allow user to jump to another page on left mouse click. However right-clicking does not select a node but just displays the browser (IE6) popup menu. Do I need to set any treeview properties in order to make this works?
Link Posted: 01-Feb-2008 11:42
[quote="DHW"]I am using FlyTreeView for ASP.NET 2.0 v4.3.1.139. Is this the current version?

No, it was fixed in 4.3.1.154. So you need to update your treeview to fix the issue.
Link Posted: 04-Feb-2008 05:29
Hi,

I installed FlyTreeView for ASP.NET 2.0 v4.3.1.248 and now right-clicking a node always selects it. But is there a property or a way to disable this behavior? Because in my case, the concerned node is set with NavigateUrl and right-clicking it always causes jumping to the set page without giving the chance of displaying the context menu. However we want user can jump to the designated page on left-clicking the node.

Thanks.
Link Posted: 04-Feb-2008 05:47
Unfortunately, currently this is "compiled" into treeview.
If you own FlyTreeView source code, you can simply put the following JS code in the beginning of fn_Node_MouseDown function (node_07_handlers.js file):
// exit if not button 0 (IE button 1) is pressed
if (!ch_fromKeyboard && ch_event &&
        ((vr_b_ie && ch_event.pt_button != 1)||(!vr_b_ie && ch_event.pt_button != 0))) return;


We can make this a global option (e.g. FlyTreeView.RightClickSelects), but this will take some time.
Link Posted: 04-Feb-2008 05:56
We have the TEAM LICENSE. Do we have the source code? If yes, where should it be installed? How to "recompile" after the modification?
Link Posted: 04-Feb-2008 05:59
The TEAM License does not include source code. The only licenses that provide complete source code  are Enterprise Licenses (both annual and lifetime).
Link Posted: 04-Feb-2008 06:04
Then it would be great if we can have the temporary fix before the next release which you said will take some time. Thanks.
Link Posted: 04-Feb-2008 06:16
ok