question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rows not shown, always empty table

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior We use your table on different pages of our app. Sometimes we have the problem, the table is not shown the records. We load the records from an http resource asynchronously, after elaborating it in some way on angular code we push the rows to table rows. The problem is sometime, or better explained on some builds the table does not show the data. But the data is for sure there.

So we are not sure why this is happening and why this happening sometimes, but for example now, this is happening on every serve and on every build.

So perhaps is this a render or a timing problem? Or do you know this bug, or what could be the problem?

  • Table version: 11.1.7
  • Angular version: 5.1.3
  • Language: [TypeScript 2.5.x]

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:21

github_iconTop GitHub Comments

10reactions
johnhwrightcommented, Jan 9, 2018

Not sure if this is related but I’ve also started running into empty tables when externally filtering the data set.

If the set is emptied but then items are added, the scrollbar appears but until you actually scroll in the table no data is shown. Resizing the page or any other action has no effect, only scrolling in the table triggers it

emptytable

6reactions
ghostcommented, Apr 20, 2018

I’m also seeing what @johnhwright is seeing.

I dug into this a bit more, and it has to do with virtualization. I can get it to consistently happen when downloading the repo, running it, and making some modifications to one of the demos, so it isn’t caused by anything outside of this package.

In order to re-create it, you can initialize the component with more data than than fits within the table, thus having the option to scroll. You then need the following to happen:

  • Scroll down in the grid a bit
  • Set the rows to an empty array, clearing out the table
  • Set the rows to some actual entries again

When this happens, the rows above where you are scrolled to are all blank. This only happens when virtualization is enabled.

I believe what is happening is the component doesn’t understand that the scroll position should have changed, due to the grid being set to nothing and then having more added, so those elements above wherever you were scrolled to aren’t added to the dom.

Hopefully that helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tables with no rows not empty
e.g. This database is showing 2 tables that have 0 rows, yet their size is not 0. If i truncate the tables they...
Read more >
Show or Hide Missing Values or Empty Rows and Columns
Show or Hide Missing Values or Empty Rows and Columns ... You can show the empty rows by selecting Analysis > Table Layout...
Read more >
SQL insert into table if row not exists in empty table not working
If myTable is empty, then a SELECT ... FROM myTable will never produce any rows (even without the WHERE condition). Use. FROM dual....
Read more >
Table data entry - How to always have a blank row at the end ...
Well, tabbing out of the the last cell in the last row in which you're entering data should automatically add a new, blank...
Read more >
Do not display the unused, blank rows of a resultset ...
Do not display the unused, blank rows of a resultset. Datatables always "reserves" space for 10 rows ... Hi all! I have the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found