How to show dynamic table to datatable?

How to show dynamic table to datatable?

yunikeyunike Posts: 1Questions: 1Answers: 0

Hi everyone

I have some table in database, with not fix column in every table. Every table have very large dataset. I make feature in my website so that user can choose what table they can show. So, how can I using datatable to show tables as user choice? I hope this can use server side processing, but with dynamic table (because the columns of every table is different).

Thank you

This question has an accepted answers - jump to answer

Answers

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

    Hi @yunike ,

    serverSide processing is just a script on the server which when called returns the data in the expected JSON format. If you have multiple tables, just either have multiple or scripts, or a single script and pass in an argument with ajax.data that will identify the table.

    Cheers,

    Colin

This discussion has been closed.