user1613294
user1613294

Reputation:

jquery datatable plugin: i want to customize jquery datatable

I am using jquery datatable (example). I want these changes:

  1. I want to change the options of show entries dropdown.
  2. I want to use show entries, search and paging footer in some different div (other than the div in which my table reside). Want to keep them apart as these are always keep sticking to the table.
  3. When I use paging the table shoud not move. It shoud be fix in boundaries.

Upvotes: 1

Views: 120

Answers (2)

maialithar
maialithar

Reputation: 3123

If you check examples and options reference you will surely find your answers. This, this and this may help you with point 2.

Upvotes: 0

João Silva
João Silva

Reputation: 91309

I want to change the options of show entries dropdown.

Use the aLengthMenu parameter:

"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]

I want to use show entries, search and paging footer in some different div (other than the div in which my table reside). Want to keep them apart as these are always keep sticking to the table.

Use the sDom parameter. You can inject divs and customize existing ones with custom classes.

When I use paging the table shoud not move. It shoud be fix in boundaries.

Add fixed width and height to your table.

Upvotes: 1

Related Questions