setFocusIndex

sets focus to an item according to its index

void setFocusIndex(number index);

Deprecated

instead of it, you can use the setFocus method:

dataview.setFocus("id");

Parameters

indexnumberthe index of an item

Example

dataview.setFocusIndex(7);

Back to top