Dynamic Columns

Dynamic Columns

lusabolusabo Posts: 18Questions: 0Answers: 0
edited March 2012 in General
Hi all,

I have this JSON:

[{"DESCRICAO_CODIGO_RHAP":"Horas Brutas dos Julgadores",
"OPERADOR_CODIGO_RHAP":"=",
"SIGLA_GRUPO_CODIGO_RHAP":"HB",
"CODIGO_RHAP":"",
"01/01/2012 a 05/01/2012":"680"},

{"DESCRICAO_CODIGO_RHAP":"Compensação",
"OPERADOR_CODIGO_RHAP":"+",
"SIGLA_GRUPO_CODIGO_RHAP":"HAC",
"CODIGO_RHAP":"50",
"01/01/2012 a 05/01/2012":"0"}]

where the colums with a date are created dynamic after submit the form.

How to configure the datatable to work without a lot of changes. I can't change the JSON format because I use this way in others functionalities.

My code:

$('#quadro1').dataTable({
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": false,
"bInfo": false,
"oLanguage": {
"sProcessing": "Carregando ..."
},
"aaData": <%= gsJsonQuadro1 %>
});

Thanks.
This discussion has been closed.