6

How can I show a tooltip for the Kendo UI Angular 2 grid column name? I've tried using the html title attribute, but it conflicts with kendo-grid-column title property.

1 Answer 1

4

You can insert a span with a title in the template:

<template kendoHeaderTemplate let-column let-columnIndex="columnIndex">
  <span title={{column.field}}>{{column.field}}({{columnIndex}})</span>
</template>

http://plnkr.co/edit/eYtBLMv45XFLcnbXn2ZW?p=preview

Sign up to request clarification or add additional context in comments.

1 Comment

@knikolov, Thanks for that. It only worked for me in grid only when I used kendoGridHeaderTemplate, instead of just kendoHeaderTemplate... So my updated code is <template kendoGridHeaderTemplate let-column let-columnIndex="columnIndex"> <span title={{column.field}}>{{column.field}}({{columnIndex}})</span> </template>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.