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

Show tooltip only for <TD> elements that have certian CSS class

3 Answers 139 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Mahesh
Top achievements
Rank 1
Mahesh asked on 13 Mar 2015, 07:23 PM
How can I enable Tooltip only for <TD> which have "contains-data" class? The <TD> elements which do not have "contains-data" class should not open Tooltip.


@(Html.Kendo().Tooltip()
.For("#Grid")
.Filter("td.contains-data")
.ContentTemplateId("template")
.Width(400)
.Height(200)
.AutoHide(false)
.ShowOn(TooltipShowOnEvent.Click)

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 16 Mar 2015, 09:40 AM

Hello Mahesh,

The provided sample code is correct and is working as expected on my side. Are you experiencing any issues with it?

I am looking forward to hearing from you.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mahesh
Top achievements
Rank 1
answered on 16 Mar 2015, 02:22 PM
Thanks for the reply Dimiter.

It works (opens Tooltip) for <TD> elements which have "contains-data" class but when I click <TD> elements which do not have "contains-data" class, Tooltip opens.

As I said in previous post, the <TD> elements which do not have "contains-data" class should not open Tooltip.
0
Dimiter Madjarov
Telerik team
answered on 16 Mar 2015, 02:48 PM

Hello Mahesh,

I am unable to reproduce this on my side. The tooltip is shown only for the cells with the specified class. Make sure that the class is added only to the correct cells on your end.

If the issue is still reproducing, please send us an isolated runnable example that we could inspect locally and assist further.

Regards,
Dimiter Madjarov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ToolTip
Asked by
Mahesh
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Mahesh
Top achievements
Rank 1
Share this question
or