get row index using unique column value

get row index using unique column value

rndinfrndinf Posts: 9Questions: 0Answers: 0
edited May 2012 in DataTables 1.8
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

  • rndinfrndinf Posts: 9Questions: 0Answers: 0
    appreciate any help...
  • rndinfrndinf Posts: 9Questions: 0Answers: 0
    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]);
  • deckarddeckard Posts: 6Questions: 0Answers: 0
    edited July 2012
    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.