Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SiteMap > How to change radsitemap font name?

Not answered How to change radsitemap font name?

Feed from this thread
  • Posted on Jul 26, 2010 (permalink)

    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

     

    Reply

  • Yana Yana admin's avatar

    Posted on Jul 27, 2010 (permalink)

    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

    Reply

  • Posted on Jul 27, 2010 (permalink)

    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>

     

    Reply

  • Yana Yana admin's avatar

    Posted on Jul 28, 2010 (permalink)

    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
    Attached files

    Reply

  • Posted on Jul 28, 2010 (permalink)

    Hi Yana,

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



    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SiteMap > How to change radsitemap font name?