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

RadToolTipManager AutoTooltipifying EVERYTHING!!!

3 Answers 95 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 28 Jan 2009, 12:32 AM
Afternoon guys,

I have been having fun with RadToolTips but have run into a completely bazaar situation... I am not even really sure how to debug this, i do not quite know how this is happening... Let me try explain:

 First of all, i am building a SiteFinity website so there are no aspx pages, just ascx controls that make up my site...

Ok so i have two controls FlightPassengers.ascx and ReservationDetails.ascx.

FlightPassengers.ascx has a form on it where a user can enter data, it has RadDatePickers and RadAjaxPanel and performs partial page updates when certain actions are performed...

ReservationDetails.ascx is where i have my RadToolTipManager control... the control is built to LoadOnDemand and i have EXPLICITLY told it to NOT AutoTooltipify anything... OnAjaxUpdate it loads up my user control and displays data based on the parameter i pass it... The control looks like this and works like a charm...

<rad:RadToolTipManager ID="ttmAirportInfo" OnAjaxUpdate="ttmAirportInfo_OnAjaxUpdate" SkinID="sknRadToolTipManager_AirportInfo" AutoTooltipify="false" runat="server" /> 
 
Now all is well until FlightPassengers.ascx performs a partial page update of itself. After which anything on this control that has a tooltip (like the RadDatePicker) from then on out runs the RadToolTipManager (ttmAirportInfo) that i have on my other control (ReservationDetails.ascx)

Why? and how do i make it stop doing this?

Duncan

3 Answers, 1 is accepted

Sort by
0
Mario
Top achievements
Rank 2
answered on 28 Jan 2009, 07:23 AM
I've experienced the same thing.

Don't know exactly why, but when there's an async postback and there's no target-controls added to the RadToolTipManager, the manager autotooltipifies everything.

So the solution is to have a dummy-target, like a <span> somewhere on the site and add it as a target-control. That solved it for med.

A span for example:
<span id="Span_DummyOrWhateverYouWantToCallIt"></span> 

and then in your RadToolTipManager:
<telerik:RadToolTipManager ID="RadToolTipManager_Info" runat="server"
      <TargetControls> 
          <telerik:ToolTipTargetControl TargetControlID="Span_DummyOrWhateverYouWantToCallIt" IsClientID="true" /> 
      </TargetControls> 
</telerik:RadToolTipManager> 

That solved it for me.

The Telerik-crew or a search in the forums will probably give you an answer to WHY it happens.

Regards Mario


0
Tervel
Telerik team
answered on 28 Jan 2009, 08:41 AM
Hi guys,

Duncan, I noticed that you have set the AutoTooltipify = "false" - which is the correct thing to do in your scenario, and it should have worked fine. However, I think in one of the Telerik.Web.UI versions that we released setting this property actually had no effect as it was not properly sent from server to the client. Certainly, this has later been corrected.

So, in your cases, my assumption is that you might be using older Telerik.Web.UI versions. The current latest is 2008.3.1314.

In case you are using an older version, and for some reason prefer to stay with it, then the workaround suggested by Mario (using a dummy-target) should do the trick.


Kind regards,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mike
Top achievements
Rank 1
answered on 28 Jan 2009, 04:42 PM
Hi Tervel and Mario,

I suspect that your assumption is correct. This is a SiteFinity 3.5 site and i have been waiting patiently for the 3.6 release of SiteFinity which updates the RadControls. I am kinda stuck with this version of the RadControls as the guys at SiteFinity have suggested that i NOT update the RadControls as it may effect the SiteFinity administration pages...

I will try the workaround out, thank you both for the reply.

Duncan
Tags
ToolTip
Asked by
Mike
Top achievements
Rank 1
Answers by
Mario
Top achievements
Rank 2
Tervel
Telerik team
Mike
Top achievements
Rank 1
Share this question
or