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

FromCode , Show and codebehind

3 Answers 99 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Luca
Top achievements
Rank 1
Luca asked on 20 Apr 2010, 11:25 AM
I set the

ShowEvent="FromCode" 

and now I'm calling the tooltip with .Show() method, but I'm missing something : where can I put my tooltip-populating code,in the codebehind (no js) ?

thanks

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Apr 2010, 01:10 PM
Hello Luca,

Call the Show() method of the RadToolTip control in order to show from code behind.

C#:
 
RadToolTip1.Show(); 


Regards,
Princy.
0
Luca
Top achievements
Rank 1
answered on 20 Apr 2010, 02:17 PM
But you didn't respond to my questions : where can I put my code ?!
0
Svetlina Anati
Telerik team
answered on 23 Apr 2010, 09:10 AM
Hello Luca,

When you have ShowEvent="FromCode" you should programmatically show the tooltip. This can be done both on the client and on the server as explained below:

1) To show the tooltip on the client you should reference the tooltip through the method $find and call its method show(). Note that javascript is case sensitive and the method should be spelled with in lower case.

2) To show the tooltip from the server you should call its server method Show() as Princy also explained.

All the best,
Svetlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ToolTip
Asked by
Luca
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Luca
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or