Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Customizing TreeView control appearance ( 2.0)

Thread Tools

Customizing TreeView control appearance ( 2.0)
Posts: n/a
I want to use a TreeView control as a one-level, vertical navigation
menu. I'm using this control currently with a SiteMapDataSource
and .sitemap file. I've written code that associates an image with
each TreeView node based upon a custom attribute I have included in
the siteMapNode nodes of my .sitemap file. This all works as desired,
including the security trimming which is especially desired behavior.
The nodes of the TreeView displays, from left to right, an image and
the title text (both from the .sitemap file).

What I want to do differently is to place the title text UNDER the
associated image, instead of to the right of it. The overall effect
is to have all the TreeView nodes (images and text) either centered or
left justified. I want to use the TreeView in this manner as it
(assuming I can get this to work) will give me a nice-looking,
vertical menu that doesn't take up a lot of horizontal space. In
other words, this will be used as an icon-based "menu strip" that will
run down the left side of my website. It will just happen to have
text under each icon. I want to use the TreeView control since it
ties in nicely with the 2.0 security model (i.e. security

I suppose I could write a custom control that does all of this, but
I'd like to make the TreeView control work since all this security
functionality is already built-in. I can also use the 2.0
Menu control, if it is easier to achieve the results I want with that
control. Any help would be much appreciated.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Customizing TreeView control appearance ( 2.0) ASP .Net 0 02-13-2007 10:58 PM
How do I get the value of a DropDownList control that was defined by customizing the CreateUserWizard control? Learner ASP .Net Security 2 04-25-2006 08:19 PM
Issue with a custom TreeView derived from the TreeView control Ionutz ASP .Net Web Controls 2 10-23-2005 03:23 PM
Control the appearance of a launched application Lafoopsie C++ 2 10-13-2003 04:30 PM
Re: How to change appearance of Drop Down List control? bruce barker ASP .Net 1 08-13-2003 04:45 PM