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

Set a tooltip from the code behind

1 Answer 215 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Udi
Top achievements
Rank 1
Udi asked on 20 Dec 2010, 01:14 PM
Hi,

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.

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 23 Dec 2010, 09:31 AM
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:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/showevent/defaultcs.aspx

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

Regards,
Svetlina
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.
Tags
ToolTip
Asked by
Udi
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or