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

Cancelling the Display Of Webservice-bound Tooltip

2 Answers 34 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 06 Aug 2009, 08:53 AM
Hello, I have a bit an issue with ToolTips and Webservices.

In this scenario, I have a Tooltip that needs to periodically check a Webservice for results. Sometimes there are no results, so the Webservice returns null. I would like to catch these nulls and prevent the Tooltip from displaying "null" or an empty balloon, and the place to do that would seem to be clientbeforeShow, but the Webservice does not appear to be called until after this event. By the time we reach OnClientShow, it is too late to stop the Tooltip from appearing. Is there another way to go about this?

Additionally, how does one cause the ToolTip to initiate another Webservice call from the client-side. Is this possible?

Thank-you in advance!

2 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 11 Aug 2009, 08:16 AM
Any help on this would be greatly appreciated.
0
Svetlina Anati
Telerik team
answered on 11 Aug 2009, 11:56 AM
Hello John,

The only solution we can suggest for this scenario is to use a RadXmlHttpPanel control to get the result returned from the WebService. After that, if it is different than null, to set teh content of the tooltip and to show it.

The demos of the RadXmlHttpPanel are available below:

http://demos.telerik.com/aspnet-ajax/xmlhttppanel/examples/default/defaultcs.aspx

and the documentation is here:

http://www.telerik.com/help/aspnet-ajax/radxmlhttppanel.html

Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolTip
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or