Ngx- DataTable data refresh Issue
See original GitHub issueI’m submitting a … (check one with “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 I have used Ngx -data table in my angular 4 Project . when I added new row to grid , data not getting refresh data.
I have Push data in row after adding row , but it is not refreshing data .I have used below code to push row in rows.
let tempRows = this.rows;
tempRows.push(result);
this.rows = tempRows;
does ngx-data table provide refresh method? .If not can you suggest any alternatives? Expected behavior
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
- Table version: 0.8.x
-
Angular version: 2.0.x : 1.2.7 node: 6.10.2 os: win32 x64 : 4.3.4 : 2.0.0-beta.8 : 4.3.4 : 4.3.4 : 4.3.4 : #4.3.4 : 4.3.4 : 2.0.0-beta.8 : 4.3.4 : 4.3.4 : 4.3.4 : 1.2.7 : 4.3.4
-
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 ]
- Language: [all | TypeScript X.X | ES6/7 | ES5]
Issue Analytics
- State:
- Created 6 years ago
- Comments:15
Top GitHub Comments
This happened to me with
Angular version 5.2.3.
this.rows.push(...records
) did not trigger table change. I had to dothis.rows = this.rows.concat(records);