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

322
Views
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 answers
Answer question

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 Report

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