Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用一个 asp .net 树视图控件,其“ShowCheckBoxes”属性已设置为“All”。现在,如果用户检查根节点,我希望它下的所有节点都被“检查”。我查看了事件模型,但找不到告诉我检查的节点是根节点还是子节点的事件或属性。
如何确定所选节点是根节点还是子节点?
用javascript是可能的,看@
http://geekswithblogs.net/ranganh/archive/2006/03/25/73300.aspx
或者
http://dotnetslackers.com/Community/blogs/kaushalparik/archive/2008/06/17/treeview-automatically-check-all-childnode-checkboxes-on-checking-parentnode-checkbox-using-javascript.aspx
对不起,简短的回答...
:)
//W