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

Tooltip in a treelist when using TemplateId

1 Answer 183 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Yngve
Top achievements
Rank 1
Yngve asked on 04 May 2017, 10:20 AM

Hi,

 

I have a treelist where I want to show a tooltip when you hover over a certain span tag inside one of the columns. The span is added to the column via the .templateId - function.

 

Here is the Code for what I'm trying to do. The problem is I don't get the (Html.Kendo().Tooltip() function to bind the tooltip functionality to the span when the span is generated via the templateId function. If I just make a span anywhere else outside the treelist it works fine. The spans all have their own id : "tooltip_0" etc. How would I go about implementing this?

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 08 May 2017, 08:48 AM
Hello Yngve,

You should initialize the Kendo ToolTip over the TreeList wrapper and set the filter to point to the SPAN element:
You could include a class name for example to the span element, so you could set the filter to that particular element. 

Hope this helps.


Regards,
Konstantin Dikov
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
ToolTip
Asked by
Yngve
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or