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

117
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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