kendo toolbar commandtype button tooltip

2 posts, 0 answers
  1. Anamika
    Anamika avatar
    150 posts
    Member since:
    Mar 2014

    Posted 23 May Link to this post

    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

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 24 May Link to this post

    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.
Back to Top