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.

ngx-datatable not showing data after closing and reopening ngx-bootstrap modal popup

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

use the ngx datatable in a component that you wish to open in bs modalpopup of ngx-bootstrap , then close the poup and reopen, the table occupies space but does not show any data Expected behavior

the table should still show data after reopening the modal popup Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Windows 7

  • Table version: 0.8.x

9.3.0

  • Angular version: 2.0.x

2.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Chrome

  • Language: [all | TypeScript X.X | ES6/7 | ES5] ES5

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
cheuk102commented, Sep 10, 2018

Hi, had same issue and I resolved just changed the css of ngx-datatable: datatable-header, datatable-body, datatable-footer{ width: auto !important; }

0reactions
milos-popadiccommented, Mar 20, 2019

The workarounds mentioned didn’t work for me, I forced rerender with *ngIf. I have dataArrived set to false and I’m setting it to true after data is bound to ng-datatable data.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ngx-datatable not showing data after closing and reopening ngx ...
I'm submitting a ... (check one with "x") [X ] bug report => search github for a similar issue or PR before submitting...
Read more >
Angular: not-to-update values in ngx-datatable-column if ...
I made a deep copy of the JSON Object which contains the values both of the ngx-datatable and the modal.
Read more >
How to Make a Modal Popup Refresh Items on the Page
This is a mandatory function required to close the modal invoked by the onHide event. Call the reload() method after setting the modal's...
Read more >
How to pass data between NGX Bootstrap modal and parent
Initiate the project. First set up a new angular project and install ngx-bootstrap modal. Create a simple component ItemList to display a list...
Read more >
Reset form inside bootstrap modal popup when it closed
Here is the working demo code for therichpost Reset form inside bootstrap modal popup when it closed: · $('#myModal').on('hidden.bs.modal', ...
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