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

I am trying to add a TextBox or DropDownList to nodes in a standard ASP.NET TreeView control so that I can accept user input when node is selected and use the input text for postback in the code for. TreeView is configured to display CheckBoxes.

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

+3
source share
1 answer

I'm sorry to tell you, but TreeView cannot store other controls. If you want this functionality, you will have to write your own TreeView.

Regarding the use of TreeView in Windows Forms - here is a simplified example

+1
source

Source: https://habr.com/ru/post/1788523/


All Articles