Please Anybody can help me?
I cann't change parent window url after radwindow close.
this is code on parent window .
function UpdateParentPage(args) {
if (args != null && args != '') {
if (args.startsWith('MoveReservation')) {
UpdateParentPageWithAjaxRequest('GrpResRoomRebind');
}
else if (args.startsWith('CheckIn')) {
window.location.reload();
}
else {
UpdateParentPageWithAjaxRequest('ReBindTransList');
// RedirePage();
}
}
}
function RedirePage()
{
top.location.href= "../../Reservation/FolioNew.aspx";
}
.....
Code on RadWindow
function ResizeAndClose(width, height, key) {
//if (document.referrer.indexOf("/Update/ReservationDetails.aspx") > 0) {
// top.location.href = '../../Reservation/FolioNew.aspx?';
//}
GetRadWindow().setSize(width, height);
setTimeout('GetRadWindow().close("")', 100);
GetRadWindow().BrowserWindow.UpdateParentPage(key);
GetRadWindow().BrowserWindow.RedirePage();
}
What i want is after process this GetRadWindow().BrowserWindow.UpdateParentPage(key), want to go redirepage.
I cann't change parent window url after radwindow close.
this is code on parent window .
function UpdateParentPage(args) {
if (args != null && args != '') {
if (args.startsWith('MoveReservation')) {
UpdateParentPageWithAjaxRequest('GrpResRoomRebind');
}
else if (args.startsWith('CheckIn')) {
window.location.reload();
}
else {
UpdateParentPageWithAjaxRequest('ReBindTransList');
// RedirePage();
}
}
}
function RedirePage()
{
top.location.href= "../../Reservation/FolioNew.aspx";
}
.....
Code on RadWindow
function ResizeAndClose(width, height, key) {
//if (document.referrer.indexOf("/Update/ReservationDetails.aspx") > 0) {
// top.location.href = '../../Reservation/FolioNew.aspx?';
//}
GetRadWindow().setSize(width, height);
setTimeout('GetRadWindow().close("")', 100);
GetRadWindow().BrowserWindow.UpdateParentPage(key);
GetRadWindow().BrowserWindow.RedirePage();
}
What i want is after process this GetRadWindow().BrowserWindow.UpdateParentPage(key), want to go redirepage.