Not sure what group this should fall into but right now I have buttons that act like tabs and display a grid when clicked. They all reside inside a WARP and works well when clicking a button, the proper grid is displayed. In the grid is a link to "edit" an item. That link launches a WebDialogWindow and when the user is done editing they accept the changes, the WDW closes and now I need the proper grid to refresh async. When I try it using the function below I get an Index is out of range exception:
function submitWARP() {
var submitByRefresh = true;
if (submitByRefresh) {
var warp = ig$('WebAsyncRefreshPanel1');
if (warp)
warp.refresh();
}
else
_doPostBack('btnRecent', '');
ERROR:
[IndexOutOfRangeException: Index was outside the bounds of the array.] Infragistics.Web.UI.LayoutControls.DialogWindowBot.LoadClientObjects(Object[] objects) +139 Infragistics.Web.UI.Framework.ObjectBase.LoadClientState(Object[] oData) +132 Infragistics.Web.UI.Framework.RunBot.HandleOnInit(HttpContext context) +194 Infragistics.Web.UI.Framework.ControlMain.OnInit(EventArgs e) +124 System.Web.UI.Control.InitRecursive(Control namingContainer) +333 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
Hi,
You can not combine/use async postback of WARP with changes/actions to AJAX based controls like WebDialogWindow. WARP is not compatible with them, so they can not be nested in each other or rely on async actions of each other.If you use WebDialogWindow, then you should replace WARP by UpdatePanel.