row.DT_RowId undefined in row object

row.DT_RowId undefined in row object

KimvdLindeKimvdLinde Posts: 30Questions: 8Answers: 0

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)

Replies

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    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

  • KimvdLindeKimvdLinde Posts: 30Questions: 8Answers: 0

    See your e-mail.

  • KimvdLindeKimvdLinde Posts: 30Questions: 8Answers: 0

    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 be ID since you have that information in that property:
    http://editor.datatables.net/reference/option/idSrc

This discussion has been closed.