Block animation

2 posts, 1 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 23 Dec 2010 Link to this post

    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
  2. Answer
    Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 23 Dec 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top