1 person found this helpful
list.dataGroup.verticalScrollPosition right before you navigate away from the list and set it again when you come back to this view. Hopefully this helps.
Ok, what exactly does that mean though? Could you please provide just a little more guidance / example?
Put your results into a ListCollectionView (for example XMLListCollection, ArrayCollection, or ArrayList), then use a filterFunction to show just the items you care about.
When you are about to move away from the screen track the verticalScrollPosition of the dataGroup at some place(first thing thats on my mind is a singleton/manager you store the value). then when you come back to this screen, set the verticalScrollPosition on the list dataGroup again for it to scroll down to the place where you left it by grabbing the value from the singleton.
http://flex4examples.wordpress.com/2010/06/18/flex-4-list-remembering-verticalscrollpositi on/ some immediate example I've found in google.
Thankyou so much for the post....!
also list has ensureindexisvisible, if you know the indexes of the list data providers, you can say list.ensureIndexIsVisible(indexOfD);
may be inrder to find out the index of the alphabets, you have to pre process the list data provider by sorting it first then loop through the collection and find out the indexes at which the alphabet is starting. for example D. Simultaniously you have to store them in a map like dictionary to retreive it when asked. You have to mix and mash my previous post and this to acheive what you are trying.