Hi,
How to show a RadAlert on a modal RadWindow befor closing the radwindow.
Requirement Step:
1) Open a page (Say EmployeeList.aspx).
2) Open a radwindow as modal window using a button. Radwindow is navigating to other page (Say EditEmployee.aspx).
3) Modal window contails "Save" and "Cancel" button.
4) Once user edits the data and hit Save button - we need to show a radalert saying 'Data Saved Successfully' and the modal window needs to closed automatically.
Problem is: As I am closing the radwindow to refresh the parent page grid, radalert message is not getting displayed. Also I can't use asp.net alert coz normal alert will not allow me to change the alert (yellow) icon to information icon. Kindly help on this
Java script code on EditEmployee.aspx to close the modal window:
function CloseAndRebind(args) {
radalert('Data Saved successfully', 330, 100, 'Client RadAlert', null);
GetRadWindow().BrowserWindow.refreshGrid(args);
GetRadWindow().close();
}
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)
return oWindow;
}
function CloseWindow() {
GetRadWindow().close();
}