Manipulate record nos.

Manipulate record nos.

aliencheetaaliencheeta Posts: 1Questions: 0Answers: 0
edited September 2013 in General
Hi

The data that I am using will be coming up in chunks of 600 records from a third party service call.
I am using a static datatable so all the record nos are from 1 to 600. The service call is also returning me page nos. Using that page no I can calculate the actual record no. eg. If page no is 2 and record no is 345, then actual record no is 600+345=945 which I want to show to the user.

However I am not able to find how to manipulate the data table record nos. to show this new value.

Is there some easy way to do that.

Thanks in advance !!!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Not really to be honest - you need to tell DataTables up front how many records there are - you could possibly intercept the return and manipulate it a bit, adding records, or faking a server-side processing response, but no - if you want DataTables to say that there are 945 rows, you need to give it 945 rows.

    Allan
This discussion has been closed.