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 use filterControl: 'select' with formatter

I am using bootstrap-table for working with data from my database. I get my data in javascript and I wanted to filter by select and I have a formatter on each column I tried some solutions but nothing worked.

exemple the filter of reglementation is empty

what do you think ?

My code

let defaultColumns = [{
            field: 'id',
            title: 'ID',
            filterControl: "input",
            visible: false
        }, {
            field: 'article',
            title: 'Article N°',
            filterType: 'input',
            height: 1700,
            filterControl: "input",
            formatter: initialiseSelect,

        }, {
            field: 'reglementation',
            title: 'Réglementation',
            searchable: 'true',
            filterControl: 'select',
            filterData: 'var:arrayReg',
            formatter: initialiseSelectReglementation,

        },  {
            field: 'action',
            title: 'Valider',
            filterControl: "select",
            filterData: 'var:arrayReg',
            height: 700,
            formatter: initialiseCheckbox,
        }

        ];

to initialize the array

let options = {
                    url: ******,
                    method: 'GET',
                    locale: "fr-FR",
                    uniqueId: "id",
                    pagination: true,
                    showExport: true,
                    filterControl: true,
                    disableUnusedSelectOptions: true,
                    // showRefresh: true,
                    autoRefresh: true,
                    exportDataType: "all",
                    exportTypes: ['csv', 'excel'],
                    columns: defaultColumns,
                };
                //initialisation de table

                initTable(options);
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