Bottom Rows Disappear
See original GitHub issueOriginally I had labelled this ticket as bottom rows disappear on fast scroll, but as you can see with my comment below I’m also experiencing the same issue when the window is much larger (without even scrolling).
When scrolling rather quickly, the bottom rows are disappearing/showing as white space.
I’m using the stock standard 4.2.1 template.
I have tried this with large and small data sets alike, still the same problem. There are two screen shots attached to demonstrate.
Table construct is below.
var table = new Tabulator
(
"#example-table",
{
height:(window.innerHeight)-20, // I need a slim buffer before the footer of my window
headerFilterPlaceholder: '',
selectable:1,
data: [**Data** ] ,
dataTree:true,
dataTreeStartExpanded:true,
dataTreeBranchElement: false,
dataTreeChildIndent: 25,
dataTreeCollapseElement: !1,
dataTreeStartExpanded: !0,
layout:"fitColumns",
columns:[ **Columns** ],
rowFormatter:function(row)
{
var rowColor = row.getData().color
row.getElement().style.backgroundColor = rowColor;
},
}
);
I have tested this on both IE and Safari.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
My Excel Columns Or Rows Not Hidden But Missing?!
This means that if there are rows/columns that are not visible to either the left or top of your spreadsheet, these cells will...
Read more >Rows "disappeared" from excel Spreadsheet
I've been asked to investigate an Excel issue about "disappearing rows" In a spreadsheet with several thousand rows , the first few hundred ......
Read more >Delete all the extra blank rows at the bottom of spreadsheet
Press function key F5 - a "Go To" panel will be displayed. Select "Special...", then "Last cell", then "OK" - the "Go To"...
Read more >How to hide and unhide rows in Excel - Ablebits
The tutorial shows how to quickly hide and unhide rows in Excel: show ... row and hold down the Shift key while selecting...
Read more >3 Ways to Unhide Rows in Excel - wikiHow
1. Open the Excel document. Double-click the Excel document that you want to use to open it in Excel. 2. Find the hidden...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi,
I would like to reopen this issue, as I’m experiencing the same problem. I have a large table with a few 1000 rows. Upon loading it looks fine, and if I scroll slowly, it remains ok. When I scroll faster however, the bottom rows disappear.
Before scroll:
After scroll:
The table construction is really simple (There is only a 100 rows in this example, but it illustrates the issue):
This is on Firefox and Tabulator 4.2.3
Edit: Just to make @olifolkerd 's answer clear. If I understand correctly, after the data changes, a redraw is required (he mentions resizing, but I assume this refers to resizing the amount of data, not the physical table size, which is what I originally misunderstood.) To fix my code above I had to add:
after
This solved the problem, and it is working fine now.
Thanks for the reply @olifolkerd
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . EDIT: I did see that you specifically mentioned
redraw
function. I just wanted to know if this will cause any performance issues or can fail sometimes. Also, wanted to verify from you that the way I’m using it is correct. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .So, are you suggesting that a
redraw()
should be enough to handle this or there is a specificresize
function available? I did it like this:This seemed to work (although, it didn’t work the first time but worked after a
CTRL+F5
) but I’m not sure if this the best way or is it working just by fluke and may fail in some edge cases! Do I also need to add an event listener for each.tabulator-data-tree-control
to make sure a redraw is done on every expand/collapse? To achieve that, I had something like below in mind:Is there a specific
resize
call available likeredraw
that must be called. From docs, I could only find aboutautoResize:true, // auto resizing of table
setting in available in table configuration, which I doubt is what you were suggesting. Anyway, I believe that it is set totrue
by default. If this not how it must be done, can you point me in right direction?