Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda