Initialize datatable with parameters given as a json string
Initialize datatable with parameters given as a json string
Szabx
Posts: 2Questions: 1Answers: 0
Hello There!
I've been struggling with this thing for one day and still did not find an answer on the internet. My problem is that I want to create a dynamic initialization for all my datatables, the init parameters being sent as attributes to the
<
table> tag, and transformed into a json string. Here is an example of what I am trying to achieve:
http://live.datatables.net/cuxagot/1/edit
Is it possible to initialize a datatable like this, or am I wasting my time?
Thank You!
This discussion has been closed.
Answers
Hey Again!
I figured it out. It seems that the parameters must be places in a JQuery object instead of a json string or json object (that I tried with).
By the way, thanks for an awesome job with the whole datatable thing!