Retrieve the index of the row based on rowid of the table

Retrieve the index of the row based on rowid of the table

savinagasavinaga Posts: 1Questions: 1Answers: 0

Hi allan,
i have row id = 484236. I am trying to retrieve its index like this

table.row($("#484236")[0]).index();

but getting that as undefined. Please help me on this

Answers

  • allanallan Posts: 63,226Questions: 1Answers: 10,416 Site admin

    Can you link to a test case, per the forum rules please. That should work okay assuming the row is on the current page.

    I would suggest simply table.row( '#484236' ).index() might be a little easier.

    Allan

This discussion has been closed.