Editor idSrc for DataTable array data

Editor idSrc for DataTable array data

a1730a1730 Posts: 13Questions: 4Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
We populate datatable with an array on initialization, so serverside is false, and we do not have data labels or object keys.
Is there a way to tell editor that idSrc is in column 0? Any pointer to an example will be greatly appreciated.
Thank you.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,329Questions: 26Answers: 4,774
    Answer ✓

    This is from the idSrc docs:

    integer
    Description:
    When using DataTables with array based row data, this option gives the array index from which to read the row id from the row's data source array.

    Kevin

  • a1730a1730 Posts: 13Questions: 4Answers: 0

    That was it. Thanks!

Sign In or Register to comment.