1

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.

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.