Using Scroller plugin when the total records is not known

Using Scroller plugin when the total records is not known

vinsuvarghesevinsuvarghese Posts: 1Questions: 1Answers: 0

I am trying to implement infinite scrolling using the scroller plugin. My datatable is server side table. But the datatable response wont contain the total number of records, because of some limitation in the server side and db.

In the recordsTotal property I will always get only the current number of records that is send from server. I wont be getting the actual total number of records. Because of these, the scroller wont show the last records.

Is there any workaround for this scenario?

Answers

  • larsonatorlarsonator Posts: 54Questions: 4Answers: 2
    edited April 2015

    what limitations are preventing the database from having a max number of row?

    typically if a row doesn't exit it isn't counted so by laws of physics, there is always a max number of rows.

    but there are other ways around this. somehow you are going to need to keep track of the number of records you have loaded. take that number of records and add 100 (or more? ) and put that into the totalRecords.

This discussion has been closed.