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

360
Visualizações
How to update a row in AG-Grid without triggering a refresh?

My goal is to add a custom radio button to allow the user to select a row. At the moment I have

const Cell = (cellProps) => {
   const { data, node, api } = cellProps
   const selectedRow = () => {
    let { isChecked } = data
    let radioButtonLabel = ''
    const newRowData =[]

      api.forEachNode((currNode) => {
        const currRowData = currNode.data
        if (id === currNode.data.id) {
          currRowData.isChecked = true
          radioButtonLabel = currNode.data.name
        }
        newRowData.push(currRowData)
      }) 
    api.setRowData(newRowData)
}}

So the problem is that when the user selects a radio button of a row on the bottom of my table, it refreshes the grid (I believe setRowData triggers a refresh) and the user has to scroll to the bottom of the table to see their selection. I want to be able to stop the refresh when the user selects the radio button but not sure how that can be implemented with AG-Grid.

about 4 years ago · Juan Pablo Isaza
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