Find what page a row is on

Find what page a row is on

nicholasnicholas Posts: 5Questions: 0Answers: 0
edited November 2010 in General
How do you go about finding what page a particular record is on?

The user is able to add rows via fnAddData(), this means when either fnGetNodes() or fnGetData() is run the order does not match the display in the table. Which means it's not possible to simply scan the arrays for the record and return the index.

My sample code is included, how do I modify it to account for added rows.

[code]
var value = 14;
var nodes = this.dropTable.fnGetNodes();
for(var j in nodes) {
if ($(nodes[j]).children('td').eq(0).text()==value) {
return j;
}
}
[/code]
This discussion has been closed.