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

OnAjaxUpdate programmatically

5 Answers 112 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 2
Iron
Andrea asked on 25 Jun 2009, 09:47 AM
Hi,

why I cant define the OnAjaxUpdate RadToolTipManager method on server-side if I create the control programmatically?

Dim rttm As New RadToolTipManager 
rttm.ID = "rttElement" 
rttm.TargetControls.Add(btnLinkElement.ClientID, "imagebtn"True
rttm.TargetControls.Add(lnkBtnElement.ClientID, "hyplink"True
rttm.HideEvent = ToolTipHideEvent.ManualClose 
rttm.ShowEvent = ToolTipShowEvent.OnClick 
rttm.ShowCallout = True 
'rttm.OnAjaxUpdate="rttm_Update" 
AddHandler rttm.WHERE IS?AddressOf rttm_Update 
 

Thanks.

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Jun 2009, 10:47 AM
Hello Andrea,

The ajax update event handler for RadToolTipManager is spelled AjaxUpdate  rather than OnAjaxUpdate.
vb:
Protected Sub Page_Load(sender As Object, e As EventArgs) 
      Dim rttm As New RadToolTipManager  
      rttm.ID = "rttElement"  
      rttm.TargetControls.Add(btnLinkElement.ClientID, "imagebtn"True)  
      rttm.TargetControls.Add(lnkBtnElement.ClientID, "hyplink"True)  
      rttm.HideEvent = ToolTipHideEvent.ManualClose  
      rttm.ShowEvent = ToolTipShowEvent.OnClick  
      rttm.ShowCallout = True  
      AddHandler rttm.AjaxUpdate, AddressOf rttm_AjaxUpdate  
End Sub 
 
Sub RadToolTipManager1_AjaxUpdate(sender As Object, e As ToolTipUpdateEventArgs) 
       'code here 
End Sub 

Hope that makes sense.
-Princy.
0
Andrea
Top achievements
Rank 2
Iron
answered on 25 Jun 2009, 12:12 PM
Thanks!!! Now I have another problem, this RadToolTipManager is linked to an hyperlink that is in a Ajaxified RadGrid CommandItem then the tooltip appears and immediatly disapperas! :(

Best Regards
0
Svetlina Anati
Telerik team
answered on 01 Jul 2009, 06:02 AM
Hello Andrea,

Would you please provide more details about the exact way you have ajaxified the grid? I case you have wrapped it in an asp update panel, please set UpdateMode="Conditional" for the panel and test again.

In case this does not help, I would like to kindly ask you to open a new support ticket and attach a sample, fully runnable reproduction demo (use Northwind or a fake programmatic datasource for the grid) there along with detailed reproduction steps and explanations of the actual and the desired behavior and I will do my best to help.

Kind regards,
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
Andrea
Top achievements
Rank 2
Iron
answered on 01 Jul 2009, 08:41 AM
Hi,

I'm using a RadAjaxManagerProxy because I have a master page.


Best Regards.
0
Svetlina Anati
Telerik team
answered on 03 Jul 2009, 02:45 PM
Hello Andrea,

In this case I am afraid I cannot assume what is actually happening until I examine your setup. I would like to kindly ask you to prepare a simple, fully runnable reproduction demo (with as little code as possible), open a new support ticket and send it to me along with detailed reproduction steps and explanations of the actual and the desired behavior and I will do my best to help.

Regards,
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
Andrea
Top achievements
Rank 2
Iron
Answers by
Princy
Top achievements
Rank 2
Andrea
Top achievements
Rank 2
Iron
Svetlina Anati
Telerik team
Share this question
or