Here's the link to the original question:
https://stackoverflow.com/questions/45825958/why-do-i-get-error-message-upon-filling-jquery-datatable-from-c-sharp-webapi
As part of your Datatables init code you need to define your columns.data to match your returned data structure. For example:
columns.data
"columns": [ { "data": "UserName" }, { "data": "Password" }, ]
Kevin
This is the documentation for that aspect of populating DataTables with object based data.
Allan
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
As part of your Datatables init code you need to define your
columns.data
to match your returned data structure. For example:Kevin
This is the documentation for that aspect of populating DataTables with object based data.
Allan