Serverside processing using scroller iDisplayLenght is set to 81

Serverside processing using scroller iDisplayLenght is set to 81

samdemosamdemo Posts: 16Questions: 0Answers: 0
edited October 2013 in General
Hi,

I saw http://datatables.net/release-datatables/extras/Scroller/server-side_processing.html and made one demo application using servlet instead of PHP, and a fetch data from DB using MYSQL (Total 88 records)
Everything is working perfect but when i print iDisplayLength in servlet it gives me value 81 so that server url hits second time when we scroll data upto 70-80 records ( i am checking on http fox)
I want server hit after every 10 records.
Can anyone help me what should i do for that??

Thanks

Replies

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin
    Scroller will override anything you set and replace it will a value based upon the number of rows that can be displayed + an overflow to make the display smoother.

    Display buffer can be used to adjust this: http://datatables.net/docs/Scroller/1.1.0/Scroller.oDefaults.html#displayBuffer - but a value as low as 10 isn't going to be suitable for use with Scroller I suspect.

    Allan
  • samdemosamdemo Posts: 16Questions: 0Answers: 0
    Hi Allan,
    Thank you so much for your prompt reply and suggestion.
    Will try to do suitable approach.

    Thanks,
    Sam
This discussion has been closed.