NodeStyle

  • Thread starter Thread starter Steve Prescott
  • Start date Start date
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
 
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.
 
Back
Top