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

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

Answers

  • kthorngrenkthorngren Posts: 21,309Questions: 26Answers: 4,947

    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: 63,471Questions: 1Answers: 10,467 Site admin

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

    Allan

This discussion has been closed.