jquery datatable display one row only but json return all record

jquery datatable display one row only but json return all record

rajaatifrajaatif Posts: 1Questions: 1Answers: 0

$('#datatable').DataTable(
{
"aLengthMenu": [[25, 50, 75, -1], [25, 50, 75, "All"]],
"iDisplayLength": 25,

                columns: [
                    {
                        'data': 'Training/Program Code'
                    },
                      {  'data': 'Training Date And Duration Year'   },
                       { 'data': 'Training/Program Name' },
                {
                    'data': 'RADP-N Partner Name'
                },
                     { 'data': 'Reporting Month ' },
                      { 'data': 'Training/Program Location' },
   { 'data': 'Is this training related to nutrition' } 

<thead>
<tr>
<td>Training/Program Code</td>
<td>Training/Program Code</td>
<td>Training Date And Duration Year</td>
<td>RADP-N Partner Name</td>
<td>Reporting Month </td>
<td>Training/Program Location</td>why its only display one row please help me and i check my json its display all records. thanks Is this training related to nutrition

This discussion has been closed.