How do you set the display length for the first page only?

How do you set the display length for the first page only?

arcaninearcanine Posts: 16Questions: 0Answers: 0
edited April 2013 in General
I'd like the first page of the datatable to have a length of 24

I've tried setting iDisplayLength to 24 inside fnDrawCallback, which "works" but then I think the variable persists into the request for page 2, so page 2 incorrectly becomes a length of 24 then page 3 is (correctly) 25

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin
    You want the page size to be 24, 25, 25, ... etc? There is no way to do that in DataTables at this time. All pages should be the same length - the page count calculation assumes that to be the case.

    Allan
This discussion has been closed.