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

Client event for when expansion animation is done

1 Answer 36 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Steele
Top achievements
Rank 1
Steele asked on 22 Nov 2010, 01:53 AM
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?
Thanks,
Steele.

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 23 Nov 2010, 08:10 PM
Hi Steele,

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


Regards,
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.
Tags
PanelBar
Asked by
Steele
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or