sets the position of the cursor
cursor | id | the cursor position |
var data = new webix.DataCollection({
... // collection config
});
$$('list').attachEvent("onAfterSelect", function (id) {
data.setCursor(id);
});
The cursor position is the ID of an item that the cursor is set on, not the item index.