The data returned when using cell(row,column) is inconsistent?
The data returned when using cell(row,column) is inconsistent?
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
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 therow()/index()
.Does this help?
Kevin
Thank you for help! That does make sense.