Dropdown selector of records per page.

Dropdown selector of records per page.

ravalosravalos Posts: 1Questions: 1Answers: 0

On the top left of my DataTable I have the buttons I need and on the top right the search box just the way I want it.
And on the bottom left I have the registration indicators and on the right the paging buttons. So far everything perfect and no problem.
However, I can't seem to get the dropdown selector of records per page. How could I get it to appear preferably above the table?
Thank you so much.
Ramon

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    You can use the new layout, released in DataTables 2.0 for that. There are several examples that should get you going, please see here.

    If that doesn't help, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Colin

  • allanallan Posts: 63,441Questions: 1Answers: 10,459 Site admin

    Also, have a look at this FAQ which specifically answers your question.

    If you show your code (the forum rules do require a test case be provided), I can show how to modify is as needed. Likely it will be:

    topStart: [ 'buttons', 'pageLength' ]
    

    or something similar.

    Allan

Sign In or Register to comment.