Hello!
I need to update several RadAjaxPanels from javascript. I tried to use somethink like this:
function Update()
{
<%= RadAjaxPanel1.GetAjaxEventReference("") %>;
<%= RadAjaxPanel2.GetAjaxEventReference("") %>;
}
But in this case, second one panel will be updated only.
The same situation i have when try to update RadAjaxPanel and do RadComboBox requestItems method.
I think all of this linked with limit of simultaneous HTTP requests.
Can anybody help me?
4 Answers, 1 is accepted
Would you please elaborate more on your exact scenario? Can you just use RadAjaxManager control updating ASP:Panel-s conditionally? You can trigger an AJAX request client-side via the AjaxRequest function and update the panel you need to.
Best wishes,
Konstantin Petkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Use separate RadAjaxManager for each group of RadAjaxPanels is not clear. In this case i will have 4 RadAjaxManagers for 3 RadUpdatePanel for work with all available update scenario(1 and 2, 2 and 3, 1 and 3, 1 and 2 and 3). It's not good.
Is there simple method, that allow me request to update several RadAjaxPanels like i update one panel at once?
Thank you, Konstantin.
var PageRequestManagerEx =
{
_initialized : false,
init : function()
{
if (!PageRequestManagerEx._initialized)
{
var _prm = Sys.WebForms.PageRequestManager.getInstance();
var _callQueue = new Array();
var _executingElement = null;
_prm.add_initializeRequest(initializeRequest);
_prm.add_endRequest(endRequest);
PageRequestManagerEx._initialized = true;
}
function initializeRequest(sender, args)
{
if (_prm.get_isInAsyncPostBack())
{
var postBackElement = args.get_postBackElement();
if (_executingElement != postBackElement)
{
args.set_cancel(true);
Array.enqueue(_callQueue, new Array(postBackElement.id, $get("__EVENTARGUMENT").value));
}
}
}
function endRequest(sender, args)
{
_executingElement = null;
if (_callQueue.length > 0)
{
_executingElement = Array.dequeue(_callQueue);
var _element = _executingElement[0];
var _eventArg = _executingElement[1];
_prm._doPostBack(_element, _eventArg);
}
}
}
}
if (typeof(Sys) != 'undefined')
{
Sys.Application.notifyScriptLoaded();
}