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

Manually Adding AJAX Requests

3 Answers 39 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 29 Jan 2013, 04:56 PM
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

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 01 Feb 2013, 02:34 PM
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.
0
John
Top achievements
Rank 1
answered on 01 Feb 2013, 03:02 PM
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

0
Maria Ilieva
Telerik team
answered on 04 Feb 2013, 12:23 PM
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.
Tags
Ajax
Asked by
John
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
John
Top achievements
Rank 1
Share this question
or