Find Index of a Row using fnGetData by a unique string
Find Index of a Row using fnGetData by a unique string
Hi Allan,
I'm developing a app to list the values of the table that can be moderately large (e.g. 10000 rows,23 columns).
Multiple column of multiple rows (depending upon the unique string) needs to be changed frequently. Everything is working fine for me when the data to be updated, apart from the code that is use to find the index of the row from fnGetData to update the respective row's column. I am using fnFindCellRowIndexes to find the row index which is very much slow .
Is their any other way through which we can find the index of a row from fnGetData array index.
Thanks
In Advance
Answers
hey allan, i found the solution for this i used
var index = $('#tblid').DataTable().column(0, { order: 'index'}).data().indexOf('value');
which is much faster than traversing through fnGetData.