Home All Groups Group Topic Archive Search About

Add a control to a treenode. TreeView

Author
14 Jul 2006 3:04 PM
Jerry C
I need to add controls to the nodes of a  asp.net 2.0 treeview.
I have found this article in c# I am using VB.

http://www.codeproject.com/cs/miscctrl/DropDownTreeView.asp

pointing me to other articles and information would be a great help.

Thank you
--
Jerry

Author
15 Jul 2006 9:28 AM
Alessandro Zifiglio
What you are looking at is an example on how to customize a winForms
treeview. Its pretty useless to you =P

There is no out of the box functionality that allows you to customize each
node with a control of your chosing. You will need to inherit the treeview
and override the original rendering, maybe exposing a template property
either for each node or one for the entire control that is repeated for
everynode. Either way, you need to be familiar with custom controls
development.

Regards,
Alessandro Zifiglio
http://www.AsyncUI.net


Show quoteHide quote
"Jerry C" <jerryed@nospam.nospam> ha scritto nel messaggio
news:2E611438-0FF3-4790-AD8C-84BE9C86378F@microsoft.com...
>I need to add controls to the nodes of a  asp.net 2.0 treeview.
> I have found this article in c# I am using VB.
>
> http://www.codeproject.com/cs/miscctrl/DropDownTreeView.asp
>
> pointing me to other articles and information would be a great help.
>
> Thank you
> --
> Jerry
Author
17 Jul 2006 5:55 AM
Walter Wang [MSFT]
Hi Jerry,

Thank you for your post.

As Alessandro said, the TreeView in ASP.NET 2.0 doesn't have built-in
support for customize node type.

You may try to search for some commercial TreeView controls to see if it
have this feature. Some TreeView controls can let you use HTML source to
add as a TreeView node.


Regards,
Walter Wang (waw***@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.