Tooltip in a treelist when using TemplateId

2 posts, 0 answers
  1. Yngve
    Yngve avatar
    19 posts
    Member since:
    Feb 2017

    Posted 04 May 2017 Link to this post

    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?

     

     

     

     

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2236 posts

    Posted 08 May 2017 Link to this post

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