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
Thanks
Ross Crawford
5 Answers, 1 is accepted
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.
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
Yes, that removes both tooltips, however I'd like to keep one of them without the other if possible.
Regards
Ross Crawford
0
0
Accepted
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):
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
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.