开发者

Select or Click event for a TreeView Child node

I have a treeview control in asp.net. It has multiple parents nodes and under each parent node, there are multiple child nodes. When I select a parent node (click on it) a TreeView event called TreeView1_SelectedNodeChanged is trigge开发者_如何学JAVAred. I can write custom code based on requirements. What I am looking for is "On Select" or "On Click" for a Child node. I do not see any events for a child tree node. How do I do this? Although I can write code for Parent node click, I dont see anything for child node click or select.


When you add the child node you can set the SelectAction:

child.SelectAction = TreeNodeSelectAction.Select

That should do it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜