Apache Flex

Tuesday, June 11, 2013

How to go to top or bottom of a datagrid without doing scrolling in Flex

When we have some functionality like go to top or go to bottom, we need to go to top or bottom of the datagrid or text area by just clicking a link or button in the screen.

At that time we can use "verticalScrollPosition" property of a grid or text area.

If you want to go to bottom of the screen, then set it like this :

dgList.verticalScrollPosition=dgList.maxVerticalScrollPosition;

If you want to go to bottom of the screen, then set it like this:

dgList.verticalScrollPosition=0;



Thanks & Regards,
Jigar Oza

No comments:

Post a Comment