This is a migrated thread and some comments may be shown as answers.

First level (0) styling

1 Answer 47 Views
SiteMap
This is a migrated thread and some comments may be shown as answers.
Contra
Top achievements
Rank 1
Contra asked on 06 Jan 2012, 11:03 AM
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?

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 09 Jan 2012, 02:19 PM
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
Tags
SiteMap
Asked by
Contra
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or