Hello,
I had the same problem. On row selection I wanted the row index. The solution I found out is like this –
eventArgs.getSelectedRows()._keys.length – 1].index
here length – 1 because the keys array stores all the selected row indices in case you have allow multiple select = true. So length – 1 will give the latest selected row index.
Thanks