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

Problem with RadToolTipManager, DNN and OnAjaxUpdate

4 Answers 78 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
test
Top achievements
Rank 1
test asked on 18 May 2009, 12:44 PM
Hi,

I'm trying to use RadToolTipManager with DN 4.05.01 but some problems appears.

I create a DNN module with one label and a RadToolTipManager, I want to use AjaxUpdate event to load dynamically label's tooltip. When my mouse is over the label, the tooltip opened and then close immediatly.

My DNN is Partial rendering, Ajax is enabled. Here's my code:

Test.ascx
<asp:Label ID="Label1" runat="server" Text="Label" ToolTip="OK c'est un test"></asp:Label> 
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" > 
</telerik:RadToolTipManager> 
 


Test.ascx.vb

        Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
            RadToolTipManager1.Width = 500  
            RadToolTipManager1.Height = 500  
            RadToolTipManager1.ShowEvent = Telerik.Web.UI.ToolTipShowEvent.OnMouseOver  
            RadToolTipManager1.HideEvent = Telerik.Web.UI.ToolTipHideEvent.ManualClose  
            RadToolTipManager1.TargetControls.Add(Label1.ClientID, True)  
        End Sub 
 
        Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As ObjectByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate  
            Dim oLabel As New System.Web.UI.LiteralControl  
            oLabel.Text = "bravo" 
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(oLabel)  
        End Sub 
 

What's wrong ?

Thanks.

4 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 18 May 2009, 02:47 PM
Hello test,

The provided code seems to be correct and the only thing that I can assume is causing the issue is that when you show the tooltip, you perform an Ajax request witch triggers an update of the parent element. In order to tets and fix this, you should set the parent update panel's UpdateMode = "Conditional" (in case you use RadAjax, please modify your code in order to use standard update panel to test). Let us know whether this fixes the problem.

Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
test
Top achievements
Rank 1
answered on 19 May 2009, 04:37 AM
Hi,

The problem is that I don't use any Ajax Panel in my DNN Module. Scripts that I've given you are the only ones on the pages. As I said, my module is "partial rendering" so I  suppose DNN use an Ajax Panel somewhere but I don't kno how to access it. Any suggestions ?

Thanks
0
test
Top achievements
Rank 1
answered on 20 May 2009, 11:45 AM
Hi,

I change my module's settings. The "Partial rendering" is now set to false, in my module I create an UpdatePanel control and put the label and radtooltipmanager controls in it.

When I test my module, I have an "Null object" error on the page loading on this script :
var _f=Sys.WebForms.PageRequestManager.getInstance();  
_f.add_pageLoaded(this._pageLoadedHandler);  
 
 If I continue and put the mouse over the label, I've an other "Null object" error on this script :
prm.add_endRequest(_3b);  
 

What's wrong, is TooltipManager compatible with DNN ?

Would you have an example ?

Thanks for your help.
0
Svetlina Anati
Telerik team
answered on 22 May 2009, 08:19 AM
Hi test,

I am not sure what is exactly happening and why do you get this error. That is why the best way to proceed is that you send us a live url if possible where we can observe the problem.

All the best,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
test
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
test
Top achievements
Rank 1
Share this question
or