NodeStyle

S

Steve Prescott

Hi Gang,

I posted this on the British site by mistake. So here we go again.

I am trying to apply a node style to a TreeView that is bound to a
SiteMapDataSource -- Using VS 2008. It is bound to one of two site map data
source controls. The styles just to not work. If I set a property of the
TreeView itself, the style takes. But if I set NodeStyle props in the angle
brackets, they do not take. It does not matter if I put the code inline or
in a skin file. Here is what I have in the skin file and thanks for any
ideas:

<asp:TreeView

runat="server"

skinid="nav"

Font-Bold="true"

Font-Size="10"

Font-Underline="false"

ForeColor="#797979"

Width="100%"

ExpandDepth="0"

MaxDataBindDepth="0">

<NodeStyle

ForeColor="#797979"

Font-Underline="false" />

<HoverNodeStyle

ForeColor="#484848" />

</asp:TreeView>

STEVE
 
S

Steve Prescott

I figured it out. The TreeView was contained in a Div with a Css class that
was overriding the properties. I didn't know that a Div could do that to a
control that had props set directly or in a skin file.
 

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,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top