0

I am using an advanceddatagrid in a Flex4.6 solution. I have two advanceddatagrids that are placed on top of each other. At the moment I've got it to work so that moving the bottom horizontal scrollbar moves the top grids scrollbar accordingly but the problem is that it doesnt move it the same distance since one scrollbar is larger than the other. Does anyone know how to set the horizontalscrollbar width so that I can make them the same length?

ronalchn
  • 12,225
  • 10
  • 51
  • 61
Keziah
  • 1
  • 1

1 Answers1

0

You'll need to do some math:

grid2.horizontalScrollPosition = grid1.horizontalScrollPosition  * grid2.maxHorizontalScrollPosition/grid1.maxHorizontalScrollPosition;
flexicious.com
  • 1,601
  • 1
  • 13
  • 21