Hello !
I’m troubleshooting an unexpected behavior using a datatable with dynamic:true.
When scrolling with the mouse at the end of the datatable, the last X (can be the last row only, but can be the last 3 rows too, it’s random) rows are not showing data, i.e rows are visible but empty, and html is
<div role="gridcell" class="webix_cell"></div>
rather than
<div role="gridcell" aria-rowindex="XXX" aria-colindex="Y" class="webix_cell">column value here</div>
I already checked API requests/responses, everything is fine (lasts records are loaded as expected, got pos/total_count attributes …). I ended up my debugging with a clean datatable config with default values, i.e the datatable config only contains dynamic:true and api url, i don’t play with rowHeight, adjust(), css or something.
Server side, i double check that default sorted column values (something like a date, “lastUpdated”) is not changing between 2 scroll movement while debugging, because it can explain empty row (btw i don’t see how to handle this properly)
I can’t use webix snippet right now because (of the API). Does a snippet having datatable+dynamic+local data able to handle local data load + scroll already exist ?
The initial unexpected behavior which make me investigate this scroll problem was
- blank rows too, but not only at the end. Can be anywhere but we can see that’s it’s after receiving new data. Not all the time, refreshing page make blank rows too, but not at the same position.
- when scrolling to the bottom to load all data, blanks rows appear, but when i scroll up, then down again, values of the latests rows was changing … wired
Any suggestions ?