Manually Adding AJAX Requests

4 posts, 0 answers
  1. John
    John avatar
    28 posts
    Member since:
    Mar 2010

    Posted 29 Jan 2013 Link to this post

    Hi there,

    I was following this guide (http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxrequest-to-client-event.html) to manually add Ajax requests to an HTML element.  I was wondering if it is possible to have 2, one for OnMouseOver and one for OnClick.

    John
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Feb 2013 Link to this post

    Hi John,

    It is possible to manually fire two Ajax requests- one on the OnMouseOver and one for the OnClick event as shown in the mentioned help topic. However please note that in some circumstances this two events could fire one after another and this way two Ajax requests will fire at a time. In such case in order to avoid Ajax issue you could set RequestQueueSize property of  the RadAjaxManager to a value grater than one.

    Give this a try an verify if this helps.

    Kind regards,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. John
    John avatar
    28 posts
    Member since:
    Mar 2010

    Posted 01 Feb 2013 Link to this post

    Hi Maria,

    Thanks for the reply.  To elaborate a bit more, is it possible to have 2 Ajax requests each hitting a different method and each updating different RadAjaxPanel?

    ie, mouseouver would update RadAjaxPanelA and onclick would update RadAjaxPanelA and RadAjaxPanelB

    John

  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 04 Feb 2013 Link to this post

    Hello John,

    Yes, you could separately update two RadAjaxPanels by calling ajaxRequest for the two panel from two different events. Note that if the events are called subsequently the same rule form my previous post is valid.

    Regards,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top