CssClass of TreeView Control

S

Steve Norman

Hi All,

I'm trying to get the TreeView control to use a css class defined in an
external css file through the CssClass property rather than 'hard-coding' the
style in the DefaultStyle property, but the control appears to ignore the
CssClass property and just display the fonts in black Times New Roman? Has
anyone else had this problem, or can give me a working example?

The ASP HTML on the page is:
<iewc:treeview id="TreeView1" Width="200px" height="100%" ShowPlus="True"
BackColor="Transparent" BorderStyle="None" runat="Server"
cssclass="TreeControl"> </iewc:treeview>

And the style is defined as:
..TreeControl
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.8em;
font-weight:Normal;
color:navy;
}

Microsoft.Web.UI.WebControls version is 1.0.2.226

Thanks,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top