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

SingleClick breaks navigateUrl

1 Answer 62 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 20 May 2016, 03:26 PM
When SingleClick="Button" in a toolbar, buttons with NavigateURl and target="blank" no longer appear to work.

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 25 May 2016, 01:00 PM
Hello Albert,

Unfortunately, we have to confirm that this is an issue in the RadToolBar. I have forwarded the report to our developers to fix it for the upcoming versions of the product. You could follow the progress of the bug fixing here in the Feedback Portal.

One option as a temporary workaround is navigating with JavaScript to the desired page in the OnClientButtonClicking event handler. Here is a sample implementation of the event handler:

function onClientButtonClickingHandler(sender, args) {
    var button = args.get_item();
    if (sender._singleClick != 0 && button.get_navigateUrl()) {
        window.open(button.get_navigateUrl(), button.get_target())
    }
}

Regards,
Peter Milchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
jsi
Top achievements
Rank 1
commented on 21 May 2021, 02:00 PM

Is there a chance this was fixed and regressed? I'm experiencing this behavior in the 30 Mar 2021 version
Peter Milchev
Telerik team
commented on 26 May 2021, 01:46 PM

This was not fixed, but we updated the item and will do our best to include the fix in the upcoming Service Pack: https://feedback.telerik.com/aspnet-ajax/1376897-singleclick-button-prevents-navigation-if-button-has-navigateurl 
Tags
ToolBar
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Peter Milchev
Telerik team
Share this question
or