iDisplayLength: -1 bug

iDisplayLength: -1 bug

hugihugi Posts: 2Questions: 0Answers: 0
edited December 2013 in DataTables 1.9
Hello,

I using DataTables 1.9 with client side data. We show normaley all row elements with the option iDisplayLength: -1.
The problem appears if the user deletes the last element in the datatable. The paging "previous" is active, although there are no rows in the datatable.

We can use fnClearTable as workaround.

Small demo: http://live.datatables.net/ivakuc/edit#javascript,html
Delete three times the first row and check the paging links.

Thanks
hugi

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Hi Hugi,

    Thanks flagging this up. It appears to be resolved in 1.10, which is currently pre-beta (heading for beta soon!): http://live.datatables.net/ivakuc/2/edit

    Allan
  • hugihugi Posts: 2Questions: 0Answers: 0
    Thanks for your quick reply.
    Great piece of code.
This discussion has been closed.