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

Dynamically create Rad ToolTip

3 Answers 274 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
jo
Top achievements
Rank 1
jo asked on 30 Jul 2008, 05:16 PM
I have a dynamically created rad text box.I want to create tool tip for this text box with a rad combo box or asp.net combox and the selected value should be inserted into the dynamically created rad text box.

Can we do this by using Rad ToolTip.

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 31 Jul 2008, 08:17 AM
Hi jo,

You can dynamically create a RadToolTip both on the server and on the client.

To dynamically create, configure and show a radToolTip from the server you should use the following logic:

  RadToolTip tip = new RadToolTip();  
        this.form1.Controls.Add(tip);  
        tip.Text = TextBox1.Text;  
        tip.RelativeTo = ToolTipRelativeDisplay.BrowserWindow;  
        tip.Width = Unit.Pixel(200);  
        tip.Height = Unit.Pixel(200);  
        tip.Animation = ToolTipAnimation.FlyIn;  
        tip.Position = ToolTipPosition.Center;  
        tip.Show(); 

As to creating a tooltip on the client, I suggest to examine this online demo.

Regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sandeep Pulkundwar
Top achievements
Rank 1
answered on 18 Mar 2011, 11:40 AM
Hi Telerik,

Is it possible to access the controls in a radToolTip from javascript?

I want to add an image to RadToolTip from javascript.

Previously, I tried the RadToolTipManager to set image from client-side but it did not work. So I am trying a different approach.
0
Svetlina Anati
Telerik team
answered on 19 Mar 2011, 02:54 PM
Hi Sandeep,

Yes, the controls inside the RadToolTip are actually on the same page and you can directly reference them with javascript. 

If you continue facing problems with this, please share some fully runnable reproduction code along with detailed explanations and we will help you find the reason for the issue.

All the best,
Svetlina
the Telerik team
Tags
ToolTip
Asked by
jo
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Sandeep Pulkundwar
Top achievements
Rank 1
Share this question
or