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

355
Visualizações
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 Respostas
Responde à pergunta

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