Hi,
I am using the following code to open a radWindow from another radWindow:
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
function openRadWin(accid, grporhd, contmenutxt)
{
var oManager = GetRadWindow().get_windowManager();
oManager.open('/Demo/frmAccount.aspx?id=' + accid + '&grporhd=' + grporhd + '&contmenu=' + contmenutxt, "RadWindow2");
}
I am calling openRadWin() on the click event of a button in the parent radWindow ( code given below ) to call the second radWindow (ie. RadWindow2)
I am using the following code to open the parent radWindow:
RadWindow newWindow = new RadWindow();
newWindow.Title = "Chart of Account";
newWindow.Skin = "Forest";
newWindow.NavigateUrl = "~/ChartOfAccountTest.aspx";
newWindow.Top = Unit.Pixel(50);
newWindow.VisibleOnPageLoad = true;
newWindow.Behaviors = WindowBehaviors.Move | WindowBehaviors.Close | WindowBehaviors.Minimize | WindowBehaviors.Reload;
newWindow.Left = Unit.Pixel(200);
newWindow.Width = Unit.Pixel(650);
newWindow.Height = Unit.Pixel(500);
RadWindowManager1.Windows.Add(newWindow);
The javascript given in the beginning is put in the script section of ChartOfAccountTest.aspx . I want to raise an event of CharOfAccountTest.aspx when the second radWindow (ie. RadWindow2) is closed. Please suggest me a solution to implement this. Any help will be highly appreciated.
Joseph
I am using the following code to open a radWindow from another radWindow:
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
function openRadWin(accid, grporhd, contmenutxt)
{
var oManager = GetRadWindow().get_windowManager();
oManager.open('/Demo/frmAccount.aspx?id=' + accid + '&grporhd=' + grporhd + '&contmenu=' + contmenutxt, "RadWindow2");
}
I am calling openRadWin() on the click event of a button in the parent radWindow ( code given below ) to call the second radWindow (ie. RadWindow2)
I am using the following code to open the parent radWindow:
RadWindow newWindow = new RadWindow();
newWindow.Title = "Chart of Account";
newWindow.Skin = "Forest";
newWindow.NavigateUrl = "~/ChartOfAccountTest.aspx";
newWindow.Top = Unit.Pixel(50);
newWindow.VisibleOnPageLoad = true;
newWindow.Behaviors = WindowBehaviors.Move | WindowBehaviors.Close | WindowBehaviors.Minimize | WindowBehaviors.Reload;
newWindow.Left = Unit.Pixel(200);
newWindow.Width = Unit.Pixel(650);
newWindow.Height = Unit.Pixel(500);
RadWindowManager1.Windows.Add(newWindow);
The javascript given in the beginning is put in the script section of ChartOfAccountTest.aspx . I want to raise an event of CharOfAccountTest.aspx when the second radWindow (ie. RadWindow2) is closed. Please suggest me a solution to implement this. Any help will be highly appreciated.
Joseph