How to specify scrollbar thumb position in Flex
Posted on 2010-09-23
Is there a way I can make a scrollbar thumb jump to a certain location so as to display the appropriate records applicable within its range? For example, if a datagrid that displays 10 records at a time had 500 records, scrolling the scroll bar thumb exactly at the center should roughly display the 245th to 255th records.
In order to do this, I'm guessing I would need to be able to get the beginning and end range of a scrollbar thumb. I'm sure one side has to be 0, but how do I get the END range value of a scrollbar thumb?
And secondly, how can I manually position the scrollbar thumb within the scrollbar?
Does anyone have any experience doing this? Thanks.