First level (0) styling

2 posts, 0 answers
  1. Contra
    Contra avatar
    10 posts
    Member since:
    Aug 2009

    Posted 06 Jan 2012 Link to this post

    Im having a problem styling the first level (0) the same as the rest of the levels.
    It seems to be the class of the first ul is rsmLevel instead of rsmNodeLines which the other levels has.

    Im trying to create a single vertical tree (kind of like a treeview) where all the levels have nodelines, but like I said, the first level looks weird, but all the other levels are fine.

    Any suggestions?
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 09 Jan 2012 Link to this post

    Hellon Contra,

    You can use the following css class selectors in order to apply different styles to the to both zeroth and first level of the RadSiteMap control:
    div.RadSiteMap,
    div.RadSiteMap .rsmList,
    div.RadSiteMap .rsmFlow,
    div.RadSiteMap .rsmItem {
          text-decoration: underline;
    }
     
    div.RadSiteMap .rsmTwoLevels .rsmLink,
    div.RadSiteMap .rsmTwoLevels .rsmTemplate {
          text-decoration: underline;
    }

    Kind regards,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top