How to check datatables is server side or client side?

How to check datatables is server side or client side?

wizardxxlwizardxxl Posts: 2Questions: 2Answers: 0

I'm writing a function that is used for both datatables server side and client side?
But i don't know how to check current datatables is server side or client side.

Anyone know to check it, please help?

Thanks you for your time.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,514Questions: 1Answers: 10,472 Site admin
    Answer ✓

    There isn't a public API for determining that. You could use $().DataTable().settings().oFeatures.bServerSide - but I would very strongly recommend wrapping that in a plug-in API method as the settings object is generally considered to be private. Its properties ca, do and will change between versions (its unusual, but it can happen).

    Allan

This discussion has been closed.