Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

324
Visualizações
How do I make this custom generated table editable? Made it using Ag-grid react

We need to input appraiser, sample and trial number. Once we click "create table" a table is generated according to the input entered. Appraiser is the number of tables, sample is the number of columns in each table, trial is the number of rows in each table. I have to make the table cells editable, which is where im stuck at. Find the working code below to understand it better https://codesandbox.io/s/github/nehav9311/react-ag-grid-updated

I also have to collect the data entered in json format. How do i do that?

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

There is an option for ag-grid react for changing every cell in a column to a component that for example supports editing in your situation. the complete answer is here available in the ag-grid react documentary. to describe a little bit: there is a frameworkComponents attribute for AgGridReact element where you could add components you want to use instead of regular cell and then you could set cellEditor attribute in AgGridColumn element to your custom component.

about 4 years ago · Juan Pablo Isaza Relatório

0

As per my knowledge and experience with Ag-grid react, you have to just modify your cell property like given below as :

const dataMapp = RowcountArr.map((v) => ({
  field: v,
  editable: function (params) {
    return params.node.data;
  }
}));

for more detail you can check cell editing briefly ag-grid-react component.

I hope it will work for you! Thanks.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda