how to set Data in table column after table created
how to set Data in table column after table created
$("#reportTable").dataTable({
"sAjaxSource" : 'dataTablesAction.action',
" sAjaxDataProp":"resultList",
"sServerMethod": "POST",
"deferRender": true,
"scrollX": "100%",
"aaSorting":[],
"aoColumns": [
null,
{"sClass":"td_totalamt totalamt", "mData": null,"sType" : "numeric"},
{"sClass":"td_totalplr totalplr", "mData": null,"sType" : "numeric"}
],
});
I wana to add total player and total amount in last two column. Right now i am doing this work with jquery, but in this case sorting of perticular columns does not work . it sort according to first column. and at the time of sorting it change the width of these two column.
if i use "defaultContent":"" in place of mData=null and set the data through jquery, width remain ok but sorting functionality does not works
Please help and thanks in advance for help.