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

Double Tooltips

5 Answers 97 Views
Rating
This is a migrated thread and some comments may be shown as answers.
Lucania
Top achievements
Rank 1
Lucania asked on 02 Mar 2012, 07:36 AM
I'm using Jquery qtip for my tooltips, I have it set to "prettify" the tooltips specified in all title attributes. This works fine with most Telerik controls, but with the rating control, I get double tooltips. One is the pretty qtip, but on top of it appears a second "ugly" tooltip, unprocessed by qtip. I've included a screenshot. I'm just wondering how the default rating items are rendered, do the images get an "alt" tag that might be causing this? Any ideas on how I might get around this?

Thanks

Ross Crawford

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 02 Mar 2012, 08:17 AM
Hello,

Try setting EnableToolTips property of RadRating as false.

Thanks,
Princy.
0
Lucania
Top achievements
Rank 1
answered on 04 Mar 2012, 11:21 PM
Hi Princy,

Yes, that removes both tooltips, however I'd like to keep one of them without the other if possible.

Regards

Ross Crawford
0
Lucania
Top achievements
Rank 1
answered on 05 Mar 2012, 01:43 AM
Would it be possible to do something similar to what's described in this post for a similar issue in RadEditor? I'm not familiar enough with the client API to work out what would be needed.

Thanks

Ross Crawford
0
Accepted
Slav
Telerik team
answered on 05 Mar 2012, 05:56 PM
Hello Ross,

The jQuery plugin, which you use for modifying the default appearance, does not clear the title attribute of the links in the RadRating control, which causes the standard tooltips to be displayed as well. In order to ensure that the tooltips will be displayed properly, please use the following code after the plugin has finished modifying the tooltips (you can use setTimeout for this purpose):
var rotator = $find("<%=RadRating1.ClientID %>");
var items = rotator.get_itemData();
for (var i = 0; i < items.length; i++) {
    items[i].itemElement.children[0].removeAttribute("title");
}
rotator.set_enableToolTips(false);
 
This will remove the title attribute from the links in the RadRating's items and it will stop the showing of regular tooltips on mouse over the items.

All the best,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Lucania
Top achievements
Rank 1
answered on 06 Mar 2012, 03:10 AM
Thanks Slav, that worked great.
Tags
Rating
Asked by
Lucania
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Lucania
Top achievements
Rank 1
Slav
Telerik team
Share this question
or