允许用户在树视图中选择树的相同节点 [英] Allow user to select same node of a tree in treeview

查看:63
本文介绍了允许用户在树视图中选择树的相同节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有一些节点的树视图..

每当我选择一个节点时我都无法再次选择同一个节点..

这没什么当我点击当前选择的节点时发生...

如何解决这个问题?

I have a treeview with a umber of nodes..
Whenever i select a node i am not able to select the same node again..
That is nothing happens when i click on the the currently selected node...
How can this be resolved?

推荐答案

当然,如果你点击在已经选择的节点上,节点选择/取消选择事件不会被调用,因为它没有任何意义,因为选择没有改变。没有什么可以解决。



即使您可以通过处理鼠标事件来检测此点击,我建议您避免它。更好地遵循合理的现有设计。不遵循它会让您的用户感到非常困惑。



-SA
Of course, if you click on an already selected node, node selection/unselection events are not invokes, because it would not make any sense, as the selection is not changed. There is nothing to "resolve".

Even though you can detect this click by handling mouse events, I would advise you to avoid it. Better follow the reasonable existing design. Failure to follow it would be very confusing for your users.

—SA


这篇关于允许用户在树视图中选择树的相同节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆