Approved
Last Updated: 03 Jul 2014 14:40 by Rick Atkinson
ADMIN
Danail Vasilev
Created on: 16 Dec 2013 10:49
Category: Button
Type: Bug Report
1
FIX Opening the link of RadButton (ButtonType="LinkButton") in a target window
If the Target property of the RadButton (ButtonType="LinkButton") is set to a custom string (the name of the target window, where the content of the linked page will be rendered), the link is not opened. For the time being the following workaround can be used:

JavaScript:

    <script>
        function OnClientClicked(sender, args) {
            var target = sender.get_target();
            var navURL = sender.get_navigateUrl();
            window.open(navURL, target)
        }
    </script>

ASPX:

<telerik:RadButton ID="RadButton1" runat="server" ButtonType="LinkButton" Text="click" Target="MyWindow" NavigateUrl="http://www.google.com" OnClientClicked="OnClientClicked" />
1 comment
Rick Atkinson
Posted on: 03 Jul 2014 14:40
Does not work for other targets such as _parent as well.  Would review the code from Q1 where it worked correctly.  Thanks