asp.net鼠标右键单击时选择树视图节点

asp.net鼠标右键单击时选择树视图节点

问题描述:

即时通讯使用asp.net树视图控件。我在树视图节点鼠标右键单击显示上下文菜单。但是上下文菜单打开但未选中节点。仅在鼠标左键单击时选择。我想选择节点鼠标右键单击。





谢谢。

i m using asp.net treeview control .and i am display context menu on treeview node mouse right click.but context menu is open but node is not selected.it is selected only when mouse left click .i want to select node which have mouse right click.


Thanks.

你应该永远不要试图这样做。在标准浏览器功能中,右键单击非常重要:它激活上下文菜单,这对于非常基本的浏览器功能至关重要。



-SA
You should never try to do it. In standard browser features, right click is very important: it activates the context menu, which is critically important for very basic browser functionality.

—SA


我同意 Sergey



但如果你真的想这样做,那么为什么不改变被点击的节点的背景颜色呢?

这看起来与其他节点不同。
I agree with Sergey.

But if you really want to do that, then why not change the background colour of the node which is clicked?
That would look different from other nodes.