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

How to change radsitemap font name?

4 Answers 62 Views
SiteMap
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 26 Jul 2010, 07:05 PM

I picked skin Telerik as my radsitemap skin. But I like the sitemap fonts to be Arial to match other page's fonts on my site. I tried to use

 

RadSiteMap1.Font.Name =

"Arial"  on form load but it doesn't work. The css seems controled by WebResource.axd. 
How I can change the font name?  Is there any example to show me how to  change the css?

Thanks,
Jessie

 

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Jul 2010, 08:13 AM
Hi Jessie,

You can modify the font name with the following css styles:

div.RadSiteMap_Telerik .rsmLink {
  font-family: Arial;
}

Kind regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
JJ
Top achievements
Rank 1
answered on 27 Jul 2010, 06:19 PM

Thanks Yana. But it doesn't work.

I also tried

#MainMenu_RadMenu1

{
 font-family: Arial;
font-size:20px;
}
But it doesn't work either.

Below is the code of my sitemap
--------------------------------------------
<

 

telerik:RadSiteMap ID="RadSiteMap1" Runat="server"

 

 

DataSourceID="RadSiteMapDataSource1" Skin="Telerik" CssClass="rsmList"

 

 

>

 

 

 

 

 

 

<LevelSettings>

 

 

 

 

 

 

<telerik:SiteMapLevelSetting Layout="list" Level="1" MaximumNodes="14"

 

 

SeparatorText="" Width="20px" ListLayout-RepeatColumns="3" >

 

 

 

 

 

 

<ListLayout RepeatDirection="Vertical" />

 

 

 

 

 

 

</telerik:SiteMapLevelSetting>

 

 

 

 

 

 

<telerik:SiteMapLevelSetting Level="2" Layout="list" MaximumNodes="14"

 

 

SeparatorText="">

 

 

 

 

 

 

<ListLayout RepeatDirection="Vertical" />

 

 

 

 

 

 

</telerik:SiteMapLevelSetting>

 

 

 

 

 

 

</LevelSettings>

 

 

 

 

 

 

<DefaultLevelSettings>

 

 

 

 

 

 

<ListLayout RepeatDirection="Vertical" />

 

 

 

 

 

 

</DefaultLevelSettings>

 

 

 

 

 

 

 

</telerik:RadSiteMap>

 

0
Yana
Telerik team
answered on 28 Jul 2010, 12:30 PM
Hi Jessie,

I've tested the css from my previous post and it works as expected, please find my test page attached.

All the best,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
JJ
Top achievements
Rank 1
answered on 28 Jul 2010, 02:43 PM
Hi Yana,

Thank you very much for your help. It works perfectly.



Tags
SiteMap
Asked by
JJ
Top achievements
Rank 1
Answers by
Yana
Telerik team
JJ
Top achievements
Rank 1
Share this question
or