OnAjaxUpdate from client-side

4 posts, 0 answers
  1. eyal
    eyal avatar
    54 posts
    Member since:
    Sep 2009

    Posted 20 Apr 2010 Link to this post


    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..

  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 22 Apr 2010 Link to this post

    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.
  3. eyal
    eyal avatar
    54 posts
    Member since:
    Sep 2009

    Posted 23 Apr 2010 Link to this post

    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.

  4. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 23 Apr 2010 Link to this post

    Hello eyal,

    What I can suggest in your case is the following:

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


    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:


    Sincerely yours,
    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.
Back to Top