Dynamically create Rad ToolTip

4 posts, 0 answers
  1. jo
    jo avatar
    27 posts
    Member since:
    Jul 2008

    Posted 30 Jul 2008 Link to this post

    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.
  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 31 Jul 2008 Link to this post

    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();  
            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;  

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

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
  4. Sandeep Pulkundwar
    Sandeep Pulkundwar avatar
    23 posts
    Member since:
    Jan 2009

    Posted 18 Mar 2011 Link to this post

    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.
  5. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 19 Mar 2011 Link to this post

    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,
    the Telerik team
Back to Top