Topic: Show Entries Default

csangillo free asked 2 months ago


Expected behavior I would like to set the "Show Entries" to 25, 50 or 100 when the table first displays. Is there a way to set this value? Actual behavior The "Show Entries" defaults to 10 when the table first displays.

Resources (screenshots, code snippets etc.)


Grzegorz Bujański staff answered 2 months ago


Try use pageLength options:

  $('#dtBasicExample').DataTable({
    "pageLength": 25
  });


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: MDB4 4.20.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: No