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

Tooltip Won't Show Any Content

6 Answers 125 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 20 Aug 2008, 10:40 PM
Hopefully someone can help me.

I have a user control that will have a tool tip on it.

So I have a tooltip manager on it:

<telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Skin="Vista" OnAjaxUpdate="OnAjaxUpdate" Position="MiddleRight" Width="400px" Height="300px" Animation="Slide" Sticky="true" /> 

in the code behind for the control I have

protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) 
        { 
            this.UpdateToolTip(args.Value, args.UpdatePanel); 
        } 
        private void UpdateToolTip(string elementID, UpdatePanel panel) 
        { 
            HtmlGenericControl htmlGenericControl = new HtmlGenericControl("H1"); 
            htmlGenericControl.InnerText = "<font style=\"color: black;\">This is a tool tip for " + elementID + "</font>"; 
            panel.ContentTemplateContainer.Controls.Add(htmlGenericControl); 
            panel.ContentTemplateContainer.Controls.Add(new HtmlGenericControl("HR")); 
        } 


I step through the code and on the mouseover of my target it goes into these methods but when its all done, the tooltip is just blank.  Any ideas on what I should look at?

6 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 21 Aug 2008, 03:16 AM
Didn't notice this till now, but i'm getting a failed to load viewstate error when I use do this.
0
John
Top achievements
Rank 1
answered on 21 Aug 2008, 07:59 PM
Finally figured this out, if anyone else ever encounters this problem, it was due to the fact that I load some radwindows server side and the ajax call back I guess couldn't see the windows so I add them again and it works.
0
Jason
Top achievements
Rank 1
answered on 07 Nov 2008, 12:51 AM
John,

Thanks for the tip.  I have been having the same problem.  However, I am not loading any windows dynamically.  Basically it is happening when I load one tool tip that loads up one control type, and then I go and load another tool tip with a different control type within it.  The very strange part is that this same logic is being used in another page without any problem.  Is there someone else who has ran into this and has any advice?

Thanks,
Jason
0
Svetlina Anati
Telerik team
answered on 07 Nov 2008, 11:50 AM
Hi Jason,

I am not quite sure what is the exact error with the ViewState that you receive. I assume that it might be the following one:

[HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm.
AutoGenerate cannot be used in a cluster.]

This error occur in particular situations when the page is still not completely rendered. In order to prevent this error to occur, you should set enableEventValidation="false" viewStateEncryptionMode ="Never" in the page's
directive as it is done in this online demo.

In case this is not the problem, please provide the error message or best - open a new support ticket and send a fully runnable reproduction demo along with detailed reproduction instructions.


Sincerely yours,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Feizal Amlani
Top achievements
Rank 1
answered on 05 Jun 2009, 07:42 PM
Hello,

I am having a similar issue regarding loading dynamic usercontrols in a tooltip.  The same ViewState issue.  Did anyone find the solution?

Thanks,
Feizal
0
Feizal Amlani
Top achievements
Rank 1
answered on 08 Jun 2009, 06:41 PM
Hello,

I am added a support ticket with a project that demonstrates the issue.
Ticket ID = 213604

Thanks,
Feizal
Tags
ToolTip
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Jason
Top achievements
Rank 1
Svetlina Anati
Telerik team
Feizal Amlani
Top achievements
Rank 1
Share this question
or