Change serverSide value trough API

Change serverSide value trough API

kasparkaspar Posts: 2Questions: 2Answers: 0

Is there any way to change the serverSide option of a table trough the DT API?

I am struggling with a external data source that does allow me use server side pagination in most cases, but unfortunately returns an unlimited data set in other cases :(

Answers

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

    Hi @kaspar ,

    No - options like serverSide are set at initialisation, as they're fundamental to how the table behaves. They can't be change later. That said, you could have some code that determines your logic post-initialisation, then destroy() the table table and rebuild it.

    Cheers,

    Colin

This discussion has been closed.