Won't fix
Last Updated: 09 May 2016 11:32 by ADMIN
ADMIN
Danail Vasilev
Created on: 21 Mar 2013 15:46
Category: Button
Type: Bug Report
0
FIX the redirecting to the PostBackUrl of the RadButton when it is inside of an UpdatePanel
When a RadButton with a PostBackUrl property set is located inside an UpdatePanel,  it does not redirect to the PostBackUrl on click and a JavaScript error message is thrown.

The workaround is to use:

- Either a RadButton (ButtonType="LinkButton") and set its NavigateUrl to the desired page that is to be redirected
   
-OR a RadButton (ButtonType="StandardButton") and use its OnClientClicking event handler to cancel the postback and redirect to the desired page through window.location.href. For example:

    <script type="text/javascript">
        function OnClientClicking(sender, args) {

            window.location.href = "http://www.bing.com";
            args.set_cancel(true);

        }
    </script>
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
ADMIN
Stanimir
Posted on: 09 May 2016 11:32
This is not supported scenario. The best way to go here is using RadLinkButton.