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

422
Views
AG Grid: Recibir "índice de fila no válido para asegurarIndexVisible" para índices de fila válidos

Recibo "índice de fila no válido para asegurarIndexVisible" para índices de fila válidos.

Por ejemplo:

 invalid row index for ensureIndexVisible: 0 invalid row index for ensureIndexVisible: 3

No estoy implementando getRowNodeId . En cambio, dejo que AG Grid genere los ID, pero el problema ocurre de cualquier manera que lo intente.

Aquí está el código relacionado en el componente:

 gridOptions = { onGridReady: (params: any) => { params.api.sizeColumnsToFit(); }, onRowClicked: (params: any) => { localStorage.setItem('lastDeveloper', params.node.id.toString()); this.router.navigate(['developers', params.node.data.id], { state: params.node.data }); }, onFirstDataRendered: (params: any) => { const lastDeveloperSelected = localStorage.getItem('lastDeveloper'); if (lastDeveloperSelected) { params.api.ensureIndexVisible(lastDeveloperSelected, 'middle'); } } }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Esto parece haber sido un problema de tipo, y asegurarse de que el índice fuera un number y no una string marcó la diferencia:

 params.api.ensureIndexVisible(+lastDeveloperSelected, 'middle');
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!