get row index using unique column value

get row index using unique column value

edited May 2012 in DataTables 1.8 Posts: 9
I have a table which has "ID" column that displays values from the database table.
Need help with jquery selector to get the index of the row in the datatable using ID column value
For eg, row with ID = 3 may be displayed as row 10 in the table to need that rows index to use in
fnGetData ( rowIndex)

Replies

  • Posts: 9
    appreciate any help...
  • Posts: 9
    Again I am trying to get the row index based on the unique text from ID column
    Also I am loading the datatable with bServerSide as false ( default)
    I tried using jQuery selector as below, but didnt work, any pointers will help

    oTable.fnGetPosition($("#mytable tbody td:eq(myColTxt)")[0]);
  • edited July 2012 Posts: 6
    I expect you will have solved this by now, but it sounds like this is what you're looking for:
    http://datatables.net/plug-ins/api#fnFindCellRowIndexes
This discussion has been closed.