This is a migrated thread and some comments may be shown as answers.
How do I get a tooltip inside of a header and maintain header functionality ?
1 Answer 9 Views
This is a migrated thread and some comments may be shown as answers.
Web
Top achievements
Rank 1
Web asked on 22 May 2018, 05:15 PM

This doesn't work

 

  columns.Bound(p => p.Similarity).ClientHeaderTemplate("<a class='k-link myHeaderTemplate' href=''>Your Title <span class='glyphicon glyphicon - question - sign' data-toggle='tooltip' title='Sample tooltip'></span> </a>");

 

I don't see the tooltip at all.

 

How do I fix this ? 

1 Answer, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 25 May 2018, 12:23 PM
Hello,

I believe that the easiest way to add a title tooltip to the header of a column is to handle the dataBound event. In the event, via jQuery, add the desired title attribute to the desired th element. For example:

function onDataBound(e){
    e.sender.element.find("th[data-field='Similarity']").attr("title", "Sample tooltip");
};

I hope this helps.


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