code_begin
code_begin

Reputation: 13

Jquery Datatable Pagination: Listbox combined with Full numbers

I want to display a listbox along with full numbers pagination. How can I combine both of them?

Attached Image - for pagination

Upvotes: 0

Views: 980

Answers (2)

Rahul Mahadik
Rahul Mahadik

Reputation: 12291

Simply you can do with Select list

Example: Import select.js along with your datatable js files

$(document).ready(function() {
      $('#example').dataTable( {
          "sPaginationType": "listbox"
      } );
  } );

Upvotes: 0

Andrei Zhytkevich
Andrei Zhytkevich

Reputation: 8099

Check http://legacy.datatables.net/plug-ins/pagination The last example is about select-list pagination.

They have examples for the legacy version, but it's applicable to datatables 1.10+

Upvotes: 1

Related Questions