How to change radsitemap font name?

5 posts, 0 answers
  1. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 26 Jul 2010 Link to this post

    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

     

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 27 Jul 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 27 Jul 2010 Link to this post

    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>

     

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 28 Jul 2010 Link to this post

    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
  6. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 28 Jul 2010 Link to this post

    Hi Yana,

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



Back to Top
UI for ASP.NET Ajax is Ready for VS 2017