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

105
Views
How to completely customise DataGridPro's checkbox selection

I'm working on a React project that uses Material-UI, and has a DataGridPro component. We need the checkbox selection to work a bit differently from what's implemented.

As per this example, selectionModel is an array that contains the ID of every selected row. We need to work with an exclusion list and a selection list:

  • Select all and add items to the exclusion list on deselect
  • Select only some rows, which would go to into the selection list

Is it possible to change the way checkbox selection works on DataGridPro this much? Also, is it possible to detect a click on the "select all" checkbox in the setSelectionModel method?

Thanks in advance for any suggestions.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

As you mentioned, controlled selection allows you to completely customize which row is selected. Then it is up to you to define the logic.

To detect when the "select all" checkbox is clicked, you can use headerSelectionCheckboxChange event (doc)

about 4 years ago · Juan Pablo Isaza Report
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!