ToolTip and GridHyperLinkColumn in RadGrid

4 posts, 0 answers
  1. lhalfon
    lhalfon avatar
    25 posts
    Member since:
    Aug 2007

    Posted 30 Aug 2007 Link to this post

    Hi!

    How i can createa tooltip for a link inside a GridHyperLinkColumn in the code behind (dinamic) ??

    Thanks!
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 03 Sep 2007 Link to this post

    Hello lhalfon,
    You can use the following code in the ItemDataBound handler to create the RadToolTip, where "hpHyperLink1" is the ID of your HyperLink:

    RadToolTip tooltip = new RadToolTip();  
    tooltip.ID = "RadToolTip1";  
    tooltip.TargetControlID = hpHyperLink1.ClientID;  
    tooltip.IsClientID = true;  
    tooltip.Text = hpHyperLink1.Text;  
    tooltip.ShowEvent = ToolTipShowEvent.OnClick; 

    and once you have created it, just add it to the Controls collection of the cell containing the HyperLink.

    Kind regards,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. lhalfon
    lhalfon avatar
    25 posts
    Member since:
    Aug 2007

    Posted 03 Sep 2007 Link to this post

    But I've an GridHyperLinkColumn
    Thanks.
  4. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 04 Sep 2007 Link to this post

    Hi lhalfon,
    I am afraid I cannot understand what the problem is. Can you please describe it in detail and perhaps provide some sample code to illustrate it?

    Kind regards,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top