Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Treeview control styles

Thread Tools

Treeview control styles

Posts: n/a

using C# .net 1.1

I am using the treeview control but having problems setting the style.

The treeview has a cssClass but when I set it, it is totally ignored (though
I can see that in the XML for the treeview).

The nodes themselves don't have a cssClass, but they do have a DefaultStyle.
The defaultstyle has an attribute and value pair (in the cssAttribute
Collection editor). I have never seen this before and searching on the net
reveals very little.

I have tried a number of things in my CSS. The node of each item is called
tvns:treenode. I have tried setting a style to tvns:treenode, tvns,
treenode, tvns#treenode and many other options, but the class is not being

How can I apply styles to my treeview? How do I use the cssAttribute
collection editor?

Best regards,
Dave Colliver.
~~ - Local franchises available

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
TreeView Node Styles ZZ_Scarab ASP .Net Web Controls 0 09-07-2007 11:56 PM
Treeview Styles Aren't working GroupReader ASP .Net Web Controls 3 10-03-2006 06:14 PM
ASP.NET 2.0, TreeView Control and Styles bors ASP .Net 1 01-04-2006 04:03 PM
Issue with a custom TreeView derived from the TreeView control Ionutz ASP .Net Web Controls 2 10-23-2005 03:23 PM
styles for treeview Tony ASP .Net Web Controls 0 10-29-2004 02:34 PM