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

169
Views
How to bulk edit only specific columns in React Material Table

I am working with React's Material Table. I am trying to bulk edit only one column. I tried:

import {tableIcons} from '../../../components/table/SortableTable'
import MaterialTable from "material-table";

< MaterialTable
    icons = {
      tableIcons
    }
    title = "Table"
    columns = {
      columns.map((item, index) => ({
        title: item,
        field: item,
      }))
    }
    data = {
      data
    }
    editable = {
      {
        onBulkUpdate: selectedRows =>
          new Promise((resolve, reject) => {
            console.log(selectedRows)
            setTimeout(() => {
              resolve();
            }, 1000);
          }),
      }
    }
    />

But this only enables you to edit the whole table.

So I tried to add this option:

    columns = {
      columns.map((item, index) => ({
        title: item,
        field: item,
        editable: item=='columnIwannaEdit'? 'onUpdate' : 'never',
      }))

But it seems this only works when editing a single row at a time but not with bulk edit.

Any ideas please?

Thank you !

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!