0
var table = $('#DataTable_CentroCostos').DataTable({
"processing": true,
"serverSide": true,
"ajax": {
"type": "POST",
"url": _pathGetDatosCetroCostos,
"contentType": 'application/json; charset=utf-8',
"data": function (d, e) {
return JSON.stringify({ _DtParameters: d, CC: model });
}
},
"language": {
"url": "../../Scripts/plugins/datatables/Spanish.json",
"emptyTable": "No existen datos"
},
'columnDefs': [
{
'targets': 0,
'searchable': false,
'orderable': false
},
{
'targets': 1,
'searchable': false,
'orderable': false,
},
{
'targets': 2,
'searchable': true,
'orderable': true
},
{
'targets': 3,
'searchable': true,
'orderable': true
},
{
'targets': 4,
'searchable': true,
'orderable': true
},
{
'targets': 5,
'searchable': true,
'orderable': true
}
],
"columns": [
{ "data": "Id_Rel_Area" },
{ "data": "Id_Sociedad" },
{ "data": "Sociedad_Desc" },
{ "data": "CodCentroCosto" },
{ "data": "CodCentroCosto_Desc" },
{ "data": "Consolida_GS" }
],
"scrollX": true,
"destroy": true
});