Hi, iam trying to do sorting for couple of tables by using plugins provided by datatables
Hi, iam trying to do sorting for couple of tables by using plugins provided by datatables
i am getting an error like requested unknown parameter '10' for the data source for row (screenshot is attached).
$("#ordhistTable").dataTable( {
"bJQueryUI" : true,
"sPaginationType" : "two_button",
"bAutoWidth": false,
"bLengthChange" : false,
"bProcessing": true,
"iDisplayLength" : 20,
"aaSorting": [],
"bFilter" : true,
"aoColumns": [
{ "bSearchable": false, "sType": "string" },
{ "bSearchable": true, "sType": "string" },
{ "sType":"de_date","aTargets": [ 2 ]},
{ "sType":"de_date","aTargets": [ 3 ]},
{"sType":"de_date", "aTargets": [ 4 ]},
{ },
{ },
{ },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "string" },
{ "sType": "numeric" },
{ "sType": "string" }
// { "sType": "string" }
]
});
this is the script and iam trying to sort tables 2,3,4.
please help.
Thanks in advance
Answers
According to your code, you only have one table. "aTargets" refers to columns, not tables.
sorry i mean columns.