Creating columns dynamically with datatables Jquery?

Although DataTables can obtain information about the table directly from the DOM, you may wish to give DataTables specific instructions for each individual column. This can be done using either the aoColumnDefs parameter, or aoColumns and the object information given for each column — datatables.net/usage/columns.

Although DataTables can obtain information about the table directly from the DOM, you may wish to give DataTables specific instructions for each individual column. This can be done using either the aoColumnDefs parameter, or aoColumns and the object information given for each column. " — datatables.net/usage/columns Something like: html js $("#table").

DataTable({ bJQueryUI:true, aoColumns: {mDataProp:"foo",sTitle:"Foo Title"}, {mDataProp:"bar",sTitle:"Bar Title"} , fnServerData: function( sUrl, data, fnCallback){ $. Get('data. Php', function(res) { fnCallback({ // process results to match table format "sEcho":config.

SEcho, "iTotalRecords":res.data. Total || res.data. Count, "iTotalDisplayRecords":res.data.

Count || res.data. Total, "aaData":res.data. List }) }); } }) Where data.

Php is { data:{ total:200, count:3, list: {foo:"Foo 1",bar:"Bar 1"}, {foo:"Foo 2",bar:"Bar 2"}, {foo:"Foo 3",bar:"Bar 3"}, } } There's also a good summary of setting this up here: http://datatables.net/usage/options#aaData.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions