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