Hi,
On my page (aspx). I have this code
I load a user control dynamically
This user control has button which opens a radwindow. The javascript on this user control is on radscriptblock. When the radwindow open, On the radwindow, when I click submit button, it saves data and then it calls function from aspx page to refresh the browserwindow. It is browserwindow.refeshGridComponent. I can get the alert test111 but the ajaxmanager does not refresh and it does not call RadAjaxmanager_ajaxrequest function to update the grid on the user control.
In the Radajaxmanager_ajaxrequest function on aspx page
Any help is appreciated.
Thanks.
On my page (aspx). I have this code
RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);
ajaxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(this.RadAjaxManager1_AjaxRequest);
I load a user control dynamically
var ucToolMfgInfo = (UserControls_ToolsDetailsMfgInfoUC)Page.LoadControl("~/Tools/UserControls/ToolsDetailsMfgInfoUC.ascx");
This user control has button which opens a radwindow. The javascript on this user control is on radscriptblock. When the radwindow open, On the radwindow, when I click submit button, it saves data and then it calls function from aspx page to refresh the browserwindow. It is browserwindow.refeshGridComponent. I can get the alert test111 but the ajaxmanager does not refresh and it does not call RadAjaxmanager_ajaxrequest function to update the grid on the user control.
function refreshGridComponent(arg, arg1) {
alert('test111');
var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(this.Page).ClientID %>");
ajaxManager.ajaxRequest("Component");
}
In the Radajaxmanager_ajaxrequest function on aspx page
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
try
{
if (e.Argument == "Component")
LoadUserControls("A3");
}
}
Any help is appreciated.
Thanks.