DataTables warning: table id=DataTables_Table_0 - Requested unknown parameter '8' for row 0, column 8. For more information about this code example

Example 1: DataTables warning: table id=DivisionTable - Requested unknown parameter '0' for row 0, column 0. For more information about this error

Plain text123456789$('#example').DataTable( {    data: data,    columns: [        { data: 'name' },        { data: 'position' },        { data: 'salary' },        { data: 'office' }    ]} );

Example 2: DataTables warning: table id=DivisionTable - Requested unknown parameter '0' for row 0, column 0. For more information about this error

Plain text12345678910111213141516// setup and establish DataTable     $("#ImmigrationNotes").DataTable({         ajax: "/api/StudentImmigrationNotesDT",         model: "StudentImmigrationNotesModel",         // the columns used         //data: data,         columns: [             { data: 'Advised Date:' },             { data: 'Action Given:' },             { data: 'Advise Type:' },             { data: 'Advise Note:' },             { data: 'Advise Source:' },             { data: 'School ID:' },             { data: 'Student ID:' },             { data: 'Immigration Note ID' }       ]

Tags:

Misc Example