views:

35

answers:

2

I have a custom <mx:DataGrid /> that is updated with data from a ColdFusion server every 60 seconds. I've noticed that every time the DataGrid updates and redraws the scroll position is reset to the top.

Is there a way I can preserve the scroll position for my DataGrid?

Thanks in advance.

+3  A: 

I'm pretty sure you can use the verticalScrollPosition. Save it before the updated and reset it after the update. Keep in mind that if you're changing the dataProvider, the verticalScrollPosition may not be pointing at the same place in the old and new dataprovider.

www.Flextras.com
Thanks! That was exactly what I needed.
Joe D
A: 

Can you please put the code in here?

thanks

john