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

164
Vistas
how to pass data from antdesgin modal to grid component reactjs

I've a grid component(table) made using Antdesign in React. On clicking a button ,it opens a modal which has multiple checkboxes .The challenge is to maintain the different checkbox values for different rows and pass all the selected checkboxes as a column in the same row.

This is the checkbox code :

<div><Checkbox name="length" onChange={this.handleCheck}>{listType.po_qc.metal[0].label}</Checkbox></div>
                  <div><Checkbox name="locking"onChange={this.handleCheck}>{listType.po_qc.metal[1].label}</Checkbox></div>
 

HandleChange -

 handleCheck = (event) => {
    var updatedList = [...this.state.checked];
    console.log(event.target.checked)
    if (event.target.checked) {
      updatedList = [...this.state.checked, event.target.name];
    } else {
      updatedList.splice(this.state.checked.indexOf(event.target.name), 1);
    }
    this.setState({
      checked:updatedList
    });
    console.log(this.state.checked)
  };

Need to access the sleected checkbox values for different rows .(Suppose i selected 2 checkbox in row one after opening modal then those 2 values should be here in comma separated form in row one and selected 4 checkbox in row 2 then 4 checkbox value shoould be in row 2 in comma separated form)

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