ScrollToIndex Method (FlexListBase)

Action

Ensures that the data provider item at the given index is visible.

If the item is visible, the verticalScrollPosition property is left unchanged even if the item is not the first visible item. If the item is not currently visible, the verticalScrollPosition property is changed to make the item the first visible item, unless there are not enough rows to do so because the verticalScrollPosition value is limited by the maxVerticalScrollPosition property.

Syntax

result = listBase.ScrollToIndex(index)
Variable Description
result Boolean.
index The index of the item in the data provider. Integer.