Menu Items with Awesome Icons

3 posts, 1 answers
  1. Greg
    Greg avatar
    24 posts
    Member since:
    Dec 2014

    Posted 22 May 2015 Link to this post

    I haven't found an example of how to display Awesome Icons. What to display cog next to sub menu item "User Maintenance".

     .......
    items.Add().Text("Admin")
                                            .Items(c => c.Add().Text("User Maintenance").Action("UserMaintIndex", "UserMaint"))
                                            .SpriteCssClasses("fa fa-cog");

     

    Tried above in view but doesn't work.

     

    Thanks

  2. Answer
    Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 26 May 2015 Link to this post

    Hello Greg,

    The code you shared looks correct and works as expected on our side (see screenshot). Would you please verify that the Font-Awesome CSS file is included?

    Regards,
    Alexander Popov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Greg
    Greg avatar
    24 posts
    Member since:
    Dec 2014

    Posted 28 May 2015 in reply to Alexander Popov Link to this post

    Thank you!! I just had to rearrange the location of the reference.
Back to Top