Server Side returning table as html fragment

Server Side returning table as html fragment

Pat W.Pat W. Posts: 1Questions: 0Answers: 0
edited April 2011 in General
Hello,
We are trying to use datatables with a server-side pagination. However, for some reasons we need to generate the table fragment as html content on the server-side. Is there a way to instruct datatable to process a html table response instead of the json aaData array ? According to the examples available on the site i'm afraid it is not possible, but maybe there is a hidden trick !

Replies

  • allanallan Posts: 63,217Questions: 1Answers: 10,415 Site admin
    There is a way to do it - but it isn't very efficient. Basically you would need to use fnServerData to make your call to the server and intercept the HTML return. Then from that create the 2D data array and give that back to DataTables. Slightly round about way of doing it, but certainly possible.

    Allan
This discussion has been closed.