Server side datatable with html source

Server side datatable with html source

tyro89tyro89 Posts: 1Questions: 0Answers: 0
edited August 2012 in General
Hello,

I would like to set-up a server side ajax datatable but return html instead of json as the source. Is there an easy way to do this or would I have to dig into the datatable source code?

Thank you!

Replies

  • allanallan Posts: 63,237Questions: 1Answers: 10,418 Site admin
    There is currently no way to do this with DataTables - it expects a JSON data source. What you would need to do is preprocess the string and convert it to an array or object data source.

    Allan
  • [Deleted User][Deleted User] Posts: 0Questions: 0Answers: 0
    Alternatively you could use a mustache.js template to populate the table prior to applying DataTables to it.
This discussion has been closed.