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

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

Answers

  • kthorngrenkthorngren Posts: 20,142Questions: 26Answers: 4,736

    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: 61,446Questions: 1Answers: 10,054 Site admin

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

    Allan

This discussion has been closed.