Why don't c# webapi fills the jquery datatable ?

Why don't c# webapi fills the jquery datatable ?

Answers

  • kthorngrenkthorngren Posts: 22,078Questions: 26Answers: 5,087

    As part of your Datatables init code you need to define your columns.data to match your returned data structure. For example:

      "columns": [
        { "data": "UserName" },
        { "data": "Password" },
      ]
    

    Kevin

  • allanallan Posts: 64,640Questions: 1Answers: 10,686 Site admin

    This is the documentation for that aspect of populating DataTables with object based data.

    Allan

This discussion has been closed.