row.DT_RowId undefined in row object
row.DT_RowId undefined in row object
KimvdLinde
Posts: 30Questions: 8Answers: 0
in Bug reports
I suddenly have today an issue with my tables that worked beautifully yesterday. Datatables seems to have lost the row.DT_RowId field as it is undefined, causing troubles with my ajax call (data[undefined][columnName]="0.0"). Same with when I pick up a row with JS somewhere, same issue. row.DT_RowId seems to be gone. (I load datatables from the cdn)
This discussion has been closed.
Replies
Is this problem also visible in the URL you sent me? If so I'll reply back once I've been able to find that table.
Regards,
Allan
See your e-mail.
Allan just gave me this answer by e-mail, and it solved the issue:
I think you might be running into a bug in DataTables 1.10.9 whereby the DOM id is not correctly read from the row's
tr
element into the DataTables data structure. This has been fixed in the nightly version if you would like to try that:http://datatables.net/download/nightly
The other option is to use the
idSrc
option in Editor and set it to beID
since you have that information in that property:http://editor.datatables.net/reference/option/idSrc