I have RadGrid with a add link. When click the add link it will pop up a RadWindow and load create.aspx page. When user click save button it will save data to DB and show successful information page. My question is how to refresh the RadGrid of parent page? My Code is as below:
Pop Up page:
function GetRadWindow() {
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
function refreshParent(info) {
var oWindow = GetRadWindow();
oWindow.BrowserWindow.refreshGrid(info);
}
Parent Page:
function refreshGrid(info) {
$find("<%= RadAjaxManager.ClientID %>").ajaxRequest(info);
}
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server" OnAjaxRequest="RadAjaxManager_AjaxRequest">.....
In RadAjaxManager_AjaxRequest event, it will rebind the RadGrid.
According my debugging, the RadAjaxManager_AjaxRequest is fired and RadGrid is bound. But the UI still don't show the updated data. Also, The Modal of RadWindow is set as "true"
Pop Up page:
function GetRadWindow() {
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
function refreshParent(info) {
var oWindow = GetRadWindow();
oWindow.BrowserWindow.refreshGrid(info);
}
Parent Page:
function refreshGrid(info) {
$find("<%= RadAjaxManager.ClientID %>").ajaxRequest(info);
}
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server" OnAjaxRequest="RadAjaxManager_AjaxRequest">.....
In RadAjaxManager_AjaxRequest event, it will rebind the RadGrid.
According my debugging, the RadAjaxManager_AjaxRequest is fired and RadGrid is bound. But the UI still don't show the updated data. Also, The Modal of RadWindow is set as "true"