Wrong row index in the renderer cell

Hi,

I recently discover a bug in my application :
For data with more than 1000 rows, when I sort my handsontable (5.0.2 CE) crash

After some investigation :
when i sort data, the row index provided to the renderer of the cell is wrong (for example row index is 3500 when my handsontable got 2000 rows).
and i dont know why, blank lines with wrong index are create and insert between my real rows

so i m wondering if you have any clues or ideas to find the problem ?
I perform lot of tasks in multiple hook, is it possible that my code slow down hot intern process ?

thanks for the help
jvincent.

Hi @jvincent1

you may try to use the viewportRowRenderingOffset option. However, the number of rows shouldn’t be a problem. Here https://jsfiddle.net/handsoncode/078semza/ we can easily sort 5000 rows.

Can you share your implementation in a JSFiddle demo?

Hi,

i found the solution when i made the demo ! the problem was that i invoke validateCells too soon after the table initialization.

Thanks for the help :slight_smile:
jvincent

Great to hear that it works now.

Thank you for an update.