[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to specify scrollbar thumb position in Flex

Posted on 2010-09-23
3
Medium Priority
?
436 Views
Last Modified: 2013-11-11
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.
0
Comment
Question by:elepil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
heppa earned 2000 total points
ID: 33752095
Hey.

simply use:

dataGrid.validateNow();
dataGrid.verticalScrollPosition = 50;

this will put element 50 as top visible element.

To find out about the number you wish to scroll to is simple math ;)
0
 
LVL 4

Expert Comment

by:heppa
ID: 33753491
btw: there is a property dataGrid.maxVerticalScrollPosition that has the value of the last item to scroll to (normally means itemCount - gridSize).

good luck!
0
 

Author Closing Comment

by:elepil
ID: 33754693
That was perfect! Thank you!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question