This question is locked. New answers and comments are not allowed.
...ClientEvents(events => events.OnSelect(() => { %>
function onSelect(e) {
var item = $(e.item);
$("#Tab_Selected").val(item.index());
}...where #Tab_Selected is a hidden field
Controller in this hidden field comes empty, do not get the index you selected.