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

OnAjaxUpdate from client-side

3 Answers 81 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
eyal
Top achievements
Rank 1
eyal asked on 20 Apr 2010, 07:36 AM
Hi,

I use RadToolTipManager with OnAjaxUpdate to show textbox-specific information. Some of the information should be updated based on the textbox's value as the user types.
Is it possible to call OnAjaxUpdate from client-side (for instance, in textbox's onkeyup event), so that the tooltip's content would correspond to the real-time typed value? Or otherwise, if you have a better way to implement such a case..

Thanks!
eyal

3 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 22 Apr 2010, 08:25 PM
You could probably use a RadToolTip and place it inside a RadXmlHttpPanel. You could then call initiate the call to RadXmlHttpPanel's service request method and set the tooltip content from the server-side.

I hope that helps.
0
eyal
Top achievements
Rank 1
answered on 23 Apr 2010, 06:26 AM
Thanks Robert!

I do not have experience yet with the RadXmlHttpPanel, so I'll wait to see if Telerik has a more straightforward solution before trying your suggestion.

br,
eyal
0
Svetlina Anati
Telerik team
answered on 23 Apr 2010, 09:05 AM
Hello eyal,

What I can suggest in your case is the following:

1) Set ShowEvent="FromCode" - you can learn more about this below:

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

2) Hook up the onkeydown event and reference the tooltip and call its method show() - when you call it this will invoke the OnAjaxUpdate event and the tooltip will show with the correct information. More information about the client API of the manager and how to create and reference tooltips on the client is available below:

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



Sincerely yours,
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
eyal
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
eyal
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or