Set a tooltip from the code behind

2 posts, 0 answers
  1. Oren
    Oren avatar
    36 posts
    Member since:
    Sep 2010

    Posted 20 Dec 2010 Link to this post


    I would like to set a RadToolTip from the code behind to a textbox.
    I have a property named ErrorDescription, when i fill this property i would like to set the tooltip text property and whatever i need, so,
    at last when the textbox will get a focus the tooltip will be display.

    I don't want to use any javascript or html code. only from the code behind.
    One more important thing, i don't want any postback.

    Is it possible?

    Thank you.
  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 23 Dec 2010 Link to this post

    Hello Oren,

     Straight to your requirements:

    1) You can set the tooltip's server property Text to the desired content hold in your ErrorDescription property

    2) You can set ShowEvent="OnFocus" - this will automatically show the tooltip when the target is focused, e.g as the textboxes here:

    I also recommend to examine the other tooltip demos as well to get a better overview of how to configure the control.

    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top