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

Imortant Change: RadToolTip will not show up if content is empty

3 Answers 222 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Telerik Admin
Top achievements
Rank 1
Iron
Telerik Admin asked on 05 Aug 2015, 08:23 AM

As of Q2 2015 SP1 the popup element of RadToolTip cannot be shown if the content is empty. This is a result of an important improvement—http://feedback.telerik.com/Project/108/Feedback/Details/54180.

This change will affect implementation where content of tooltip is populated via the OnClientShow event. The proper usage is handling the OnClientBeforeShow event in order for the tooltip to show up.

You can also examine this online demo (http://demos.telerik.com/aspnet-ajax/tooltip/examples/databasetooltipswithoutlod/defaultcs.aspx) to further see such an implementation.

3 Answers, 1 is accepted

Sort by
0
Geoff
Top achievements
Rank 1
answered on 06 Aug 2015, 04:39 PM
In my application, using a string of plain text for the tooltip content also resulted in the tooltip not showing up. Content should either include or be wrapped in some sort of tag (such as <p></p> or <span></span>) in order to work.
0
Ianko
Telerik team
answered on 07 Aug 2015, 11:00 AM
Hi Geoff,

Plain text can be added as content, and RadToolTIp should show in such a scenario.  The following basic example shows that:
<telerik:RadToolTip runat="server" ID="RadToolTip1" OnClientBeforeShow="OnClientBeforeShow"/>
 
<telerik:RadButton runat="server" ID="RadButton1" AutoPostBack="false" OnClientClicked="showToolTip" />
 
<script type="text/javascript">
    function showToolTip(sender, args) {
        var tooltip = $find("<%= RadToolTip1.ClientID %>");
        tooltip.show();
    }
 
    function OnClientBeforeShow(sender, args) {
        sender.set_content("some plain text");
    }
</script>

If you have further difficulties on the matter, please, contact us by opening a ticket to us with further details about the scenario, so to examine the situation accurately. Thank you.

Regards,
Ianko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Geoff
Top achievements
Rank 1
answered on 07 Aug 2015, 01:09 PM

Thanks Ianko, I hadn't considered setting my content via javascript instead of just typing it inline. Nice to know there's another option, but I prefer the solution of just throwing <span></span> around my content since using javascript to create static content doesn't seem appropriate. Your mileage may vary, of course.

 

Thanks again.

Tags
ToolTip
Asked by
Telerik Admin
Top achievements
Rank 1
Iron
Answers by
Geoff
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or