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.
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.