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

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

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