Client event for when expansion animation is done

2 posts, 0 answers
  1. Steele
    Steele avatar
    96 posts
    Member since:
    Mar 2008

    Posted 21 Nov 2010 Link to this post

    Hi All,
    I have a panelbar set up in FullExpandedItem mode.
    Inside one of these I have a grid that scrolls.  I have found that on a callback, the grid loses it's scroll position, so I need to track that. Ok, I have that working.
    My issue comes when my scrolling code is fired before the expand animation is complete - basically, once the animation is complete, the grid scroll position gets set back to the top.
    I have solved it partially by choosing an arbitrary setTimeout number to make my scrolling code fire after the expand animation has finished, but I am having trouble finding out what this is meant to be!
    I have an ExpandAnimation Duration of 200, 0 Delay, type OutQuart, but for some reason, I need to wait 500 ms to run my code.  Why is this?  If I use the Duration, it is too soon.  The client event OnClientItemExpand seems to occur when the expansion starts, so is no good to me.
    Is there a reliable way to find out whether the animation has completed so that my scrolling code will work without a pause and reliably?
  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 23 Nov 2010 Link to this post

    Hi Steele,

    Have you tried using the ClientItemAnimationEnd event of RadPanelBar?
    I think this solves it!

    Nikolay Tsenkov
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top