Rick Atkinson
Top achievements
Rank 1
Rick Atkinson
asked on 01 Jul 2014, 09:09 PM
I am setting a target for the radbutton. This was working fine with my last build from Q1. With the latest Q2 build, it appears to be ignoring the Target setting to open the link in the parent window. Instead, it navigates to the new page within the existing window. Did something change here?
<telerik:RadButton ID="testButton" runat="server" NavigateUrl="~/newPage" Text="Setup" Target="_parent" Skin="MetroTouch" ButtonType="LinkButton" AutoPostBack="false" />
<telerik:RadButton ID="testButton" runat="server" NavigateUrl="~/newPage" Text="Setup" Target="_parent" Skin="MetroTouch" ButtonType="LinkButton" AutoPostBack="false" />
4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 02 Jul 2014, 05:55 AM
Hi Rick Atkinson,
As a work around please try the below sample code snippet to open a page in new window.
ASPX:
C#:
Thanks,
Shinu.
As a work around please try the below sample code snippet to open a page in new window.
ASPX:
<telerik:RadButton runat="server" ID="RadButton1" Text="Click" OnClick="OnClick1"></telerik:RadButton>C#:
protected void OnClick1(object sender, EventArgs e){ string openURL = "<script language='javascript'>function f() { window.open('http://www.telerik.com/','open_window'); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);</script>"; Page.ClientScript.RegisterStartupScript(this.GetType(), "openURL", openURL);}Thanks,
Shinu.
0
Hi Rick,
The mentioned issue is related to the one logged in this feedback item. You can comment, follow and vote on it. For the time being you can use the workaround provided in the item.
Regards,
Danail Vasilev
Telerik
The mentioned issue is related to the one logged in this feedback item. You can comment, follow and vote on it. For the time being you can use the workaround provided in the item.
Regards,
Danail Vasilev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
Rick Atkinson
Top achievements
Rank 1
answered on 03 Jul 2014, 02:39 PM
Thanks for the update. Though, in my approach, I just need the link to open in a parent window, not a new one.
Any idea when this will be corrected? Was working in Q1 (which I reverted back to).
I use this approach in several places and would prefer not to apply a patch to each scenario.
I am now following the feedback item.
Thanks, Rick
Any idea when this will be corrected? Was working in Q1 (which I reverted back to).
I use this approach in several places and would prefer not to apply a patch to each scenario.
I am now following the feedback item.
Thanks, Rick
0
Hello Rick,
The fix for this issue will be officially release with the upcoming service pack which is planned for the end of July.
Regards,
Dobromir
Telerik
The fix for this issue will be officially release with the upcoming service pack which is planned for the end of July.
Regards,
Dobromir
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.