deferRender with vertical scroll fitting
deferRender with vertical scroll fitting
Loren Maxwell
Posts: 406Questions: 99Answers: 10
in Plug-ins
Just to confirm . . .
If I understood the explanation from this blog post correctly: https://datatables.net/blog/2017-12-31
then am I correct in believing that deferRender
will work if set to true?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The
deferRender
docs state this:In general you will enable
scrollY
and disablepaging
. Without pagingdeferRender
will be negated as all the rows are on the single page. I wasn't sure of this so I created this example:http://live.datatables.net/jarelilo/1/edit
You can see with paging false all the rows are rendered. Removing
paging: false
will render 10 rows but scrolling will be limited to the current page.Kevin
Thanks, Kevin -- I was hoping this could be a nice lightweight replacement for Scroller, which it is, but being able to take advantage of deferRender would have completed it!