Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to control a spark Datagrid's scroller position in Flex?

I'm using the new Spark Datagrid for a project, but I must confess the scroller is annoying me a little bit, so I would like to have some control over it.

In other words, I would like to programatically set the Datagrid scroller position to the position I want.

Thank you in advance.

like image 267
Felipe Avatar asked Aug 22 '11 03:08

Felipe


2 Answers

  1. Setting the horizontal scroll position in the HorizontalList control in Flex
  2. Setting the vertical scroll position on a Spark List control in Flex 4
  3. Programmatically scrolling the Spark TextArea control in Flex 4
  4. Flex 4 List remembering verticalScrollPosition
  5. Scroll automatically to the bottom of a Container or TextArea

hope these links will work for you.

like image 174
Swati Singh Avatar answered Oct 07 '22 01:10

Swati Singh


While the links above are useful to get to the answer, here is the direct answer:

someDataGrid.grid.layout.verticalScrollPosition
like image 40
Clayton Avatar answered Oct 07 '22 01:10

Clayton