Topic: Datatable option data-pagination="false" throws error provided type "string" but expected type "boolean".

Stokmanis free asked 2 years ago

I want to remove the pagination from Datatable. I add property data-pagination="false"

Javascript error is thown Uncaught Error: DATATABLE: Option "pagination" provided type "string" but expected type "boolean".

Michał Duszak staff answered 2 years ago

Hello, thank you for your feedback. We will bring this attribute back to work. Until then please turn the pagination off via JS:

mdb.Datatable.getInstance(document.querySelector('.datatable')).update({}, {
pagination: false,

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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: laptop
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: Yes