I can get a selected row like this :
var
row = $(
'.selector'
).igGrid(
'selectedRow'
);
Hi ,
Is there a way to get the row index based on the primary key? Please advice.
Thanks!!!
really help :) thx
hey,
The row object has an index property which will give you the index of the selected row in the current data view. You can retrieve the data object easily with the following code:
$('.selector').data('igGrid').dataSource.dataView()[row.index];
Hope it helps. Thanks,
Angel