$('#tblAllApprovedequets').DataTable({ "processing": false, "ajax": { "url": "/UniformApproval/GetAllApprovedRequestByEmployeeId?employeeId=" + empId , "dataSrc": function (json) { return JSON.parse(json); } }, "columns": [ { "data": "DepotName" }, { "data": "EmpName" }, { "data": "ProductName" }, { "data": "ProductCode" }, { "data": "Color" }, { "data": "Size" }, { "data": "ApprovedDate" }, { "data": "OrderedQty" }, { "data": "Rate" }, { "data": "Total" }, { "data": "Comment" } ], order: [[0, 'asc'], [1, 'asc']], rowGroup: { dataSrc: ["EmpName", "DepotName"], startRender: function (rows, group, level) { var total = rows .data() .pluck("Total") .reduce(function (a, b) { return a + b; }); return $('