iDisplayStart incorrect when reducing display size - server-side tables
iDisplayStart incorrect when reducing display size - server-side tables
szukowski
Posts: 2Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
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