Target Property is Ignored

5 posts, 0 answers
  1. Rick Atkinson
    Rick Atkinson avatar
    11 posts
    Member since:
    Feb 2010

    Posted 01 Jul 2014 Link to this post

    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" />
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Jul 2014 in reply to Rick Atkinson Link to this post

    Hi Rick Atkinson,

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 02 Jul 2014 Link to this post

    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
     

    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.

     
  5. Rick Atkinson
    Rick Atkinson avatar
    11 posts
    Member since:
    Feb 2010

    Posted 03 Jul 2014 in reply to Danail Vasilev Link to this post

    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
  6. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 07 Jul 2014 Link to this post

    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
     

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017