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

Block animation

1 Answer 46 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 23 Dec 2010, 02:32 PM
Is it possible to prevent the client side animation of the RadPanelBar?
I use it as a menu, the PanelBar start to expand when clicked before it goes to the URL of the link.

Thanks,
Marc

1 Answer, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 23 Dec 2010, 03:12 PM
Hello Fit2Page,

I think you can apply the same approach shown in this help topic:

http://www.telerik.com/help/aspnet-ajax/panel_panelbar_onclientitemclicking.html

I didn't experience this issue with the panelbar expanding before the page was redirected, but if it happens to you, you could try something like this:

function OnClientItemClicking(sender, args) {
                var item = sender.get_item();
  
                if (item.get_navigateUrl() != null) {
                    args.set_cancel(true);
                    window.location = item.get_navigateUrl();
                }
            }

This will cancel the item from being clicked if it has a NavigateUrl property set and then redirect them to the url.

I hope that helps.
Tags
PanelBar
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Cori
Top achievements
Rank 2
Share this question
or