The data returned when using cell(row,column) is inconsistent?

The data returned when using cell(row,column) is inconsistent?

wblakencwblakenc Posts: 78Questions: 17Answers: 1

Link to test case: http://live.datatables.net/fatulugu/1/edit
Debugger code (debug.datatables.net): N/a
Error messages shown: None
Description of problem:

I am trying to better understand the cell() API. Specifically the row,column function. I was reading some of the questions on the use of the cell() API and noticed a demo that @colin created for this question on the Forum is returning incorrect results in the console.log row 1. At least it seems wrong/inconsistent. Thoughts?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    Answer ✓

    The example Colin presented and your test case are returning the correct/expected data. As Colin mentioned in that thread the row-selector as an integer is the row index of the original data order not the current order. When the data is loaded its placed into a data cache and indexed by the order received. This is the row()/index().

    Does this help?

    Kevin

  • wblakencwblakenc Posts: 78Questions: 17Answers: 1

    Thank you for help! That does make sense.

Sign In or Register to comment.