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

    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
  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. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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.

    br,
    eyal
  5. Svetlina Anati
    Admin
    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:

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