In my app I need to supply cell’s data dynamically (from Web API).
Total number of rows to update can be very big.
I want to request (and then set) data only for cells that are visible within viewport.
I have tried two methods:
- GetCell (returns null if cell is not visible);
- getFirstVisibleRow(), getLastVisibleRow() from autoRowSize plugin.
Both methods are not accurate. First returns more rows than actually visible, second returns less rows than on screen.
Is there any better way? I guess I can try to use getBoundingClientRect() on cell, but I do not know which HTML elem to use for viewport.
Thank you for any tips,