Highlist unread treewiew nodes

Last post 06-17-2008 12:01 AM by Amanda Wang - MSFT. 1 replies.

Sort Posts:

  • Highlist unread treewiew nodes

    06-15-2008, 7:14 AM
    • Member
      3 point Member
    • gslakmal
    • Member since 06-06-2008, 1:33 AM
    • Posts 125

    Hi,

     

    I have tree view. I want highlight nodes wich are not read. Eg. Read node are with blue colour unread nodes are in red colour

    When nodes read it should be blue

     

    lakmal

     

    http://www.odesk.com/users/ASP-NET-Web-application-Designer-DotNetNuke-Expert_~~4fc245f3b8e64e9b
  • Re: Highlist unread treewiew nodes

    06-17-2008, 12:01 AM
    Answer

    hi,

    If the treenodes have the navigateURL, it just like  <a> tag at the render time.

    so you can try to set the node's color by setting the a's style in css,  like below:

    <style type="text/css">       

            #TreeView1 A:link {text-decoration: none; color: red;}
            #TreeView1 A:visited {text-decoration: none; color: orange;}
            #TreeView1 A:active {text-decoration: none; color: blue;}
            #TreeView1 A:hover {text-decoration: underline; }

      </style>

    <asp:TreeView ID="TreeView1" runat="server"  DataSourceID="SiteMapDataSource1">
            </asp:TreeView>

    Hope it helps.

    Amanda Wang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (2 items)