Legacy methods
Legacy methods
I am familiar with using DataTables entirely on the client side implementing my own datasource retrieval through ajax.. So for example i would create an instance of DataTables and signify the columns (using "aoColumns"), specify the type for each column (using sType), define a callback for how the data is rendered ("fnRender")... and have callbacks etc...
But now with new version i feel completely at loss. All examples are simpler, and more geared towards existing table manipulation etc,...
Please let me know what the equivalents are for these old legacy types and functions! How do i get an array of Objects in JavaScript placed into dataTables, and have it be responsible of sorting, filtering, and rendering?
This question has an accepted answers - jump to answer
Answers
This conversion document might be of some use.
Also the new manual discussed how to populate with object based data.
Worth noting as well that
fnRender
has been removed completely - see upgrade notes.Allan
Allan: I posted a comment here last night - am I being censored?
EDIT: Apparently not! Last night I got a message about needing approval.
Thinking about it, I probably do need approval..... :-)
http://datatables.net/upgrade/1.10-convert
http://datatables.net/examples/ajax/objects.html
Suspect the spam filter saw a post with two links and thought I should check it (there are only around 12k messages in the spam queue... - really must automate a clear up of that sometime!).
Sorted now and you won't be asked again for "approval" :-)
Allan