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

354
Views
AG Grid issues with updating Row data using Javascript

I am new to AG Grid. I am currently having issues with updating a single cell. I am able to update but the old value is still retained in UI when the grid loads for the first time I have a cell render selector

Cell renderer
enter image description here

Based on this When I load the AG grid for the first time it's fine. But if I do change

const r= gridOptions.api.getRowNode(params.data.id); 
                                    var test= "InProcess";
                                    r.setDataValue('IsIndexed', test);

I should get only the image but I see that it gets appended to the existing

After Changing
enter image description here

In oninit I used something like this

  if (params.value === 'ABC') {
                    imgForDLHub = '../Im1/123.png';
              
                }
                else if (params.value === '567') {
                     imgForDLHub = '../Im34/546.png';

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

0

Once you have changed the data, you need to call ag-grid's function to refresh the table cells:

api.refreshCells()

This is just a function that takes in optional params and performs change detection on all cells, refreshing cells where required.

Check out these sections of the docs for more information:

  • AG-Grid View Refresh
  • Demo From AG-Grid Docs
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!