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

How to add a logo picture on the top menu?

1 Answer 66 Views
Menu
This is a migrated thread and some comments may be shown as answers.
YN
Top achievements
Rank 1
YN asked on 06 Aug 2019, 10:26 PM

Hi Telerik experts,

 

Could you educate me add a logo picture on the top menu, like this picture showed.  Thanks a lot!

 

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 09 Aug 2019, 02:08 PM
Hello Sarah,

Use the following Menu configuration and set the first Menu item's ImageUrl. It should point at an image that you have in your project or to some external url, as shown below:
@(Html.Kendo().Menu()
    .Name("menu2")
    .Items(items =>
    {
        items.Add().Text("").ImageUrl(Url.Content("https://upload.wikimedia.org/wikipedia/en/thumb/2/20/Progress_Logo.png/70px-Progress_Logo.png"));
        items.Add().Text("Explore");
        items.Add().Text("Problems");
    })
)
The first item's text is not set so that only an image is displayed.

Regards,
Ivan Danchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Menu
Asked by
YN
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or