Basically, I created a data table with KnockoutJS according to the example here:
https://datatables.net/dev/knockout/
However, I found a big issue regarding row index. Here is some debug info from Chrome:
This is output after I added 3 rows in.
And I use row(2) to check the specific row data.
I am surprised, should it be the first one whose noteId is 636? I doubt this is a bug or it is by design?
Because I cannot find the right index, the dynamic link between data table and KnockoutJS observable array breaks.