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

Load on Demand

2 Answers 42 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Raymond
Top achievements
Rank 1
Raymond asked on 12 Apr 2009, 06:45 PM
I follow the demo example on Load on Demand and does not work for it. 

The button is declared as

 

<asp:ImageButton ID="ibEDSInfo" runat="server" ImageUrl="~/Images/info.gif"

 

 

OnClientClick="return false" />

 


The Rad Tool Tip Manager as

 

<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomCenter" RelativeTo="Element" HideEvent="LeaveToolTip"

 

 

Animation="Fade" Width="350px" Skin="Office2007" OnAjaxUpdate="onAjaxUpdate">

 

 

</telerik:RadToolTipManager>

The Server code is

 

 

protected void onAjaxUpdate(object sender, ToolTipUpdateEventArgs args)

 

{

 

this.UpdateToolTip(args.Value, args.UpdatePanel);

 

}

 

private void UpdateToolTip(string elementID, UpdatePanel panel)

 

{

 

Control ctrl = Page.LoadControl("~/UserControls/EDSDetailUC.ascx");

 

panel.ContentTemplateContainer.Controls.Add(ctrl);

 

UserControls_EDSDetailUC details = (UserControls_EDSDetailUC)ctrl;

 

details.EDSId = elementID;

}


The code to add the image to the tool tip manager is

 

RadToolTipManager1.TargetControls.Add(ibEDSInfo.ClientID, oTool.EDSId.ToString(),

true);


However, it seems the ajaxupdate is not raised at any circumstances.

What is wrong with my code snippet?


 

2 Answers, 1 is accepted

Sort by
0
Raymond
Top achievements
Rank 1
answered on 13 Apr 2009, 10:17 PM
In fact I do not want to use this feature but the web service. However, I cannot make it work using the same set of controls (radgrid is working fine).

Once i get rid of master page (ie ajax manager proxy), the coding works quite fine.

Any clue what is wrong with it?
0
Tsvetie
Telerik team
answered on 14 Apr 2009, 02:01 PM
Hi Raymond,
The code that you have provided looks correct and when I tested it - it worked as expected. However, from your second post, I understand that your setup is not as simple as it appears - e.g. you mention a master page, RadGrid and RadAjaxManagerProxy. That is why, as I am not familiar with your setup, the only thing that I can suggest is that you check whether you update the RadToolTipManager when you update the ImageButton - e.g. in case you have ajaxified the button.

Apart from this, I will need a running project, demonstrating your setup, with which I can reproduce the problem locally so that I can research what is causing it.

Regards,
Tsvetie
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
Raymond
Top achievements
Rank 1
Answers by
Raymond
Top achievements
Rank 1
Tsvetie
Telerik team
Share this question
or