Topic: Angular Datatables

akademe pro asked 5 years ago

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:

countrdd pro answered 5 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.

Damian Gemza staff answered 5 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,


Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: 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