开发者

How to add TextBox or DropDownList to a ASP.NET TreeView?

开发者 https://www.devze.com 2023-02-07 02:06 出处:网络
I am trying to add a TextBox or DropDownList to the nodes in a standard ASP.NET TreeView control so that I can take the user input when the node is selected and make use of the input text on post开发者

I am trying to add a TextBox or DropDownList to the nodes in a standard ASP.NET TreeView control so that I can take the user input when the node is selected and make use of the input text on post开发者_运维技巧back in the code behind. The TreeView is configured to show CheckBoxes.

If this is not possible, is there a way to render a text close to the node when it is selected for taking input? Or maybe have a Javascript prompt to take input when node is selected?


I am sorry to inform you but there is just no way for a TreeView to store other controls. If you wish to have such a functionality you will have to write your own TreeView.

As for TreeView usage in Windows Forms - here is a simplistic example

0

精彩评论

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

关注公众号