iDisplayStart incorrect when reducing display size - server-side tables

iDisplayStart incorrect when reducing display size - server-side tables

szukowskiszukowski Posts: 2Questions: 0Answers: 0
edited June 2010 in Bug reports
I believe that when using server-side tables and reducing the size of the display, the iDisplayStart value is not set correctly.

Consider the following ...
- Start with a server-side table with more the 50 rows.
- Set the number displayed to 25 and viewing rows 1-25
- Now page to the 2nd page (rows 26-50) - everything looks correct
- Now change the number of rows displayed to 10

The table now shows rows 16-25.

I would have expected the same behavior as DOM tables which is to display rows 26-35.

This behavior can be seen using the online example tables.

DOM Table - http://www.datatables.net/examples/basic_init/zero_config.html
Server-Side Table - http://www.datatables.net/examples/server_side/server_side.html

Replies

  • szukowskiszukowski Posts: 2Questions: 0Answers: 0
    I updated to DataTables 1.7 beta 6 but still see the same behavior. Does anyone see the same thing or have a workaround? Thank you.
  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Hi szukowski,

    Sorry I missed this thread originally. Good catch and thanks for letting me know. Yes this is a bug and it will be fixed in the next revision. There should be a new beta out soon.

    Regards,
    Allan
This discussion has been closed.