Setting recordsTotal client side rendering

Setting recordsTotal client side rendering

tslimatslima Posts: 1Questions: 1Answers: 0

Hy everyone,

I have a REST API that's already paginated. The API returns to me just the worth data of a page and also the total entries.

But I can't figure out how to tell to datatable that I have more entries then the length of data.

Since the data is already paginated I don't thing server side rendering is the answer, so how to set recordsTotal in client side rendering?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    If you enable server-side processing, it will deal with that for you. For server-side processing, enable serverSide. The protocol is discussed here. Also see examples here. If you download the DataTables repo, there are examples of the server-side scripts in /examples/server_side/scripts,

    Cheers,

    Colin

Sign In or Register to comment.