I am trying to group the rows of a table generated with DataTables and Ajax, but I can not get them to be grouped. I need to group them by the Activity column. The table that is currently generated is the following:
The JavaScript code I am using is:
function gridView(fechaDesde, fechaHasta) {
var table = $('#gridView').DataTable({
"ajax": "/IndicadorServicio/IndicadoresClientesVip/GetIndicadoresClientesVip/?fechaDesde=" + fechaDesde + "&fechaHasta=" + fechaHasta,
"columns": [
{ "data": "Actividad" },
{ "data": "SlaIndicadores" },
{ "data": "VolumenOk" },
{ "data": "VolumenTotal" },
{ "data": "Cumplimiento" },
{ "data": "Estado" }
],
'rowsGroup': [0],
"columnDefs": [
{
"searchable": false,
"sortable": false
}
],
"iDisplayLength": 15,
"aLengthMenu": [
[15, 20, 25, 30, -1],
[15, 20, 25, 30, "All"]
],
});
return table;
}
I'm using 'rowsGroup': [0] but I have not succeeded.