Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tooltip for grid column name in Kendo UI Angular 2

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.

like image 551
Sergiu Cosciug Avatar asked Nov 22 '16 07:11

Sergiu Cosciug


1 Answers

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

like image 171
knikolov Avatar answered Sep 27 '22 23:09

knikolov