Hello
I want to redirect to anther page after clicking a button in a radwindow popup, but the redirected page is loaded in the radwindow popup, which is what I want to avoid. The code I use in java script to open the popup is this:
And in the code behind of the page of the popup, I have this code attached to the clik event of ProcessBtn:
Can you plz tell me what I could do to avoid this problem?
What actually happens is that the popup closes and the redirect isn't happening at all!
I guess is because of the "return false;" i put in javascript CloseAndRebind function.
Thx a lot.
I want to redirect to anther page after clicking a button in a radwindow popup, but the redirected page is loaded in the radwindow popup, which is what I want to avoid. The code I use in java script to open the popup is this:
function CloseAndRebind(){
GetRadWindow().close();return false;
}
function GetRadWindow() {
var oWindow = null;<br>
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 CancelEdit() {
GetRadWindow().close();
}
........
<telerik:RadButton ID="GoProcessBtn" runat="server" Width="32px" Height="32px"
OnClick="ProceedBtn_OnClick" AutoPostBack="true"
OnClientClicked="CloseAndRebind" ToolTip="Proceed" Text="Proceed">
<Image ImageUrl="Images/1305562168_Next.png" /><br>
</telerik:RadButton>
<telerik:RadButton ID="CancelBtn" runat="server" Width="32px" AutoPostBack="false" Height="32px"
ToolTip="Cancel" Text="Cancel" OnClientClicked="CancelEdit">
<Image ImageUrl="Images/1305540585_gtk-dialog-error-hover.png" />
</telerik:RadButton>And in the code behind of the page of the popup, I have this code attached to the clik event of ProcessBtn:
protected void ProceedBtn_OnClick(object sender, EventArgs e)
{
//hammer
ChannelId = GoProcessBtn.CommandName;
if(string.IsNullOrEmpty(ChannelId))
return;
Response.Redirect("~/ProcessGridEditing.aspx?Channel=" +
ChannelId + "&Version=" + VersionsListBox.SelectedValue);
}Can you plz tell me what I could do to avoid this problem?
What actually happens is that the popup closes and the redirect isn't happening at all!
I guess is because of the "return false;" i put in javascript CloseAndRebind function.
Thx a lot.