NodeStyle

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Prescott

    NodeStyle

    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
    SiteMapDataSour ce -- 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="fals e"

    ForeColor="#797 979"

    Width="100%"

    ExpandDepth="0"

    MaxDataBindDept h="0">

    <NodeStyle

    ForeColor="#797 979"

    Font-Underline="fals e" />

    <HoverNodeSty le

    ForeColor="#484 848" />

    </asp:TreeView>

    STEVE

  • Steve Prescott

    #2
    Re: NodeStyle

    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.

    "Steve Prescott" <stevep@dayligh tresearch.comwr ote in message
    news:0F3DAE97-8110-40BD-B595-0E24F36D308C@mi crosoft.com...
    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
    SiteMapDataSour ce -- 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="fals e"
    >
    ForeColor="#797 979"
    >
    Width="100%"
    >
    ExpandDepth="0"
    >
    MaxDataBindDept h="0">
    >
    <NodeStyle
    >
    ForeColor="#797 979"
    >
    Font-Underline="fals e" />
    >
    <HoverNodeSty le
    >
    ForeColor="#484 848" />
    >
    </asp:TreeView>
    >
    STEVE
    >

    Comment

    Working...