ngx-datatable
ngx-datatable copied to clipboard
ngx-datatable not working with large data
I'm submitting a ... (check one with "x")
[v ] 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 when i send about 20000 rows from the server there is no reaction and the UI is falling Expected behavior the table should support to get large data at once
my code ngOnInit{ this.dataService.getData(null,null,null) .subscribe((result:any[])=>{ { if(result) { this.rows=result;
}
}
}, (error: HttpErrorResponse) => { console.log(error.status + ", " + error.statusText);
});
}
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
- 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]
This is a demo with 10,000 rows: http://swimlane.github.io/ngx-datatable/#virtual-scroll
Are you sure the problem is on the datatable side? can you post a stackblitz where you can reproduce this?
I think that the problem is on the datatable size because when i send a smaller amount of data everything works fine. and i'm sorry, i didn't understand your request.
Well, that still doesn't necessarily mean it's on the datatable side. If you can create a simple demo in https://stackblitz.com/edit/angular-egypuz where this issue can be reproduced, it would help us finding the problem.
OK, i'll do that, thanks
Same issues with data more that 10k
The same happens to me. When I load a paginated table with many rows the rendering is slow and sometimes crashes.