rowgrouping not working - no group
rowgrouping not working - no group

I have a simple datatable that I am trying to add rowGrouping (WeekOfDate) to, but the first row says 'no group', but then the following rows are showing the data correctly. I searched the forum but not finding anybody talking about this 'no group' row message.
<table id="WeeklyTotals" cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered">
<thead>
<tr>
<th>Week</th>
<th>Dept</th>
<th>Number</th>
</tr>
</thead>
</table>
$('#WeeklyTotals').DataTable({
ajax: 'api/WeeklyTotals',
columns: [
{ data: "EmployeeCounts.WeekOfDate" },
{ data: "Departments.DepartmentName" },
{ data: "EmployeeCounts.FT_Worksite" }
],
order: [[0, 'asc']],
rowGroup: {
dataSrc: 0
}
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You have:
But you are using objects not arrays. You should use this:
Kevin
that was it. perfect.