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

kendo toolbar commandtype button tooltip

1 Answer 131 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Anamika
Top achievements
Rank 1
Anamika asked on 23 May 2017, 10:54 AM

Hello,

 

Can we have tooltip for command Buttons with images

@(Html.Kendo().ToolBar()
.Name("ToolBar")
.Resizable(false)
.Items(items =>
{
items.Add().Type(CommandType.Button).ImageUrl(Url.Content("~/Images/Save_new.png")).Id("saveBtn").Click("SaveEntry");

})

 

Thanks

 

Anamika

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 24 May 2017, 01:46 PM
Hello Anamika,

You can set the button's tooltip through its HtmlAttributes configuration as shown below:
items.Add().Type(CommandType.Button).ImageUrl(Url.Content("~/Images/Save_new.png")).Id("saveBtn").Click("SaveEntry").HtmlAttributes(new { title = "myTooltip" });

Regards,
Ivan Danchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Toolbar
Asked by
Anamika
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or