Topic: Angular Datatables
Hi, we are facing an issue with data tables with regards to sort and pagination when we get dynamic data. Following error is thrown in console ERROR TypeError: Cannot read property ‘setMaxVisibleItemsNumberTo’ of undefined. We followed the same procedure as you mentioned in one of the solutions by importing components from ng-uikit-pro-standard. But still, we are facing the issue. Any help with this regard is appreciated. Thank you.
Code reference for dynamic data: https://mdbootstrap.com/docs/angular/tables/datatables/
Damian Gemza staff answered 6 years ago
Dear akademe,
I have used our data tables with remote data example, and there's no such error.
Could you please provide me reproduction steps how can I reproduce your problem?
Also please provide me with the code which you're using, and which causes your problem.
Best Regards,
Damian
countrdd pro answered 6 years ago
I had the same problem, but found that it was because in the HTML I had the mdbTable Stuff wrapped in a ngIf* to only show the table at certain times.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.5
- Device: All
- Browser: Chrome
- OS: MacOS
- Provided sample code: No
- Provided link: Yes