Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

150
Visualizações
How to load a column in datatable for the second time?

I am working on the DataTable showing the weekly data. The headers should be added dynamically. In my case, the table header is loading properly for the first time. I am using the DateTime picker, on changing the date the DataTable should re-initialize, and the column header title should change accordingly.

The column is not binding from the second time.

Can i get any suggestion on this?

Here is my part of code

table: {
            searchDisabled: true,
            url: URLS.patientDetails.reminders.getWeeklyData,
            selector: adherenceReportWeekly,
            columns: [                
                {
                    title: SetTableTitle(0),
                    data: function (row) {
                        return GetRowDatas(row, 0);
                    },
                    width:14
                },
                {
                    title: SetTableTitle(1),
                    data: function (row) {
                        return GetRowDatas(row, 1);
                    },
                    width:14
                },
                {
                    title: SetTableTitle(2),
                    data: function (row) {
                        return GetRowDatas(row, 2);
                    },
                    width:14
                },
                {
                    title: SetTableTitle(3),
                    data: function (row) {
                        return GetRowDatas(row, 3);
                    },
                    width:14
                },
                {
                    title: SetTableTitle(4),
                    data: function (row) {
                        return GetRowDatas(row, 4);
                    },
                    width:14
                },
                {
                    title: SetTableTitle(5),
                    data: function (row) {
                        return GetRowDatas(row, 5);
                    },
                    width:14
                },
                {
                    title: SetTableTitle(6),
                    data: function (row) {
                        return GetRowDatas(row, 6);
                    },
                    width:14
                }
            ],            
            ordering: false,
            pageLength: 25,
            dontAddTableClass: true
        },        

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda