Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!