Unexpected behaviour with full_numbers when changing Show entries

Unexpected behaviour with full_numbers when changing Show entries

ThomasG77ThomasG77 Posts: 2Questions: 0Answers: 0
edited June 2011 in Bug reports
Hello,

I get an unexpected behaviour. To understand it, go on http://www.datatables.net/release-datatables/examples/basic_init/alt_pagination.html
Click on "Last". You get "Showing 51 to 51 of 51 entries". It's normal for the moment ("Show entries" is set to 10 at start)
Now Set "Show entries" to 25. You get "Showing 27 to 51 of 51 entries".
What I was expecting was "Showing 51 to 51 of 51 entries".
It works like I want if I click on "2" and "3" again.
There is a way to correct this behaviour (I don't know if it's a bug or the default chosen behaviour)?

Regards

Replies

  • allanallan Posts: 63,389Questions: 1Answers: 10,449 Site admin
    This is the chosen behaviour so not a bug. I did debate over if this should be done or not a couple of years ago (it was around v1.3...), and I think overall it was the right thing to do since the question hasn't been asked about this for quite some time now.

    It's easy to modify the source if you want to change this behaviour just search for this comment:

    [code]
    /* If we have space to show extra rows (backing up from the end point - then do so */
    [/code]
    and remove the block following it.

    Allan
  • ThomasG77ThomasG77 Posts: 2Questions: 0Answers: 0
    Hello,

    Thank a lot for you answer. It work's now like I want

    Regards
This discussion has been closed.