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

manojvarma24manojvarma24 Posts: 5Questions: 2Answers: 0

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

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    ....trying to sort tables 2,3,4.

    According to your code, you only have one table. "aTargets" refers to columns, not tables.

  • manojvarma24manojvarma24 Posts: 5Questions: 2Answers: 0

    sorry i mean columns.

This discussion has been closed.