This is a migrated thread and some comments may be shown as answers.

RadButton SingleClick="true" on IE9

2 Answers 24 Views
Button
This is a migrated thread and some comments may be shown as answers.
Titus
Top achievements
Rank 1
Titus asked on 25 Oct 2013, 05:19 PM
Hello there,

Here is the code I'm using to redirect the user to a new page:

<telerik:RadButton ID="buttonProcessing" runat="server" ButtonType="LinkButton" Text="Modify" SingleClick="true" NavigateUrl='the web address goes here' SingleClickText="Please wait..." />

On any version of FireFox it works very well, however on IE9 the button launches the refresh of the current page.

Do you have any idea why this behavior?

I'm using Telerik.Web.UI v.4.0.30319

Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 28 Oct 2013, 02:10 PM
Hi Titus,

I tried to reproduce the problem with the latest available version of RadControls (2013.3.1015), but to no avail. Please review the attached clip, in which I am showing a button, which is set with the provided configuration and on my end seem to work as expected.

If you need further assistance on this, please get back to me with more details about the following matters:
  • Are there any JavaScript errors thrown in the dev toolbar's console?
  • Are there any additional customization used with the button?
  • Can you please verify which is the used version by following this release notes

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Titus
Top achievements
Rank 1
answered on 28 Oct 2013, 05:10 PM
Hello Ianko,

Thanks for your reply!

Let me first answer to your questions:
<...Are there any JavaScript errors thrown in the dev toolbar's console?...> - No, there are no errors.
<...Are there any additional customization used with the button?...> - No customization
I'm using the Q3 2012 version of the Telerik framework.

I managed to fix this by setting CausesValidation="false" and AutoPostBack="false" then implementing a JS function on the client side for the OnClientClicked handler:
function OnClientClicked(button, args) {
                window.location = button.get_navigateUrl();
                args.set_cancel(true);
        }

Everything runs fine now.
Tags
Button
Asked by
Titus
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Titus
Top achievements
Rank 1
Share this question
or