Closed GoogleCodeExporter closed 9 years ago
This functionality works but it is important that the first column of the
datatable isn't the same id for the different tables.
So if you want to use the ordering on several tables, you have to introduce
your data like this:
table1 = $("#table1").dataTable({
"aaData":
[
{
"DT_RowId": "table1_id_1", <= very important
"DT_RowClass": "table1Row",
"column1": "value1",
"column2": "value2"
},
{
"DT_RowId": "table1_id_2", <= very important
"DT_RowClass": "table1Row",
"column1": "value1",
"column2": "value2"
}
]
}).rowReordering();
table2 = $("#table2").dataTable({
"aaData":
[
{
"DT_RowId": "table2_id_1", <= very important
"DT_RowClass": "table2Row",
"column1": "value1",
"column2": "value2"
},
{
"DT_RowId": "table2_id_2", <= very important
"DT_RowClass": "table2Row",
"column1": "value1",
"column2": "value2"
}
]
}).rowReordering();
I hope that it will help you.
Original comment by volant.b...@gmail.com
on 20 Sep 2012 at 4:20
Original comment by joc...@gmail.com
on 27 May 2013 at 9:29
Hi,
Could you please try it with the latest version 1.1.0. It works on
http://jquery-datatables-row-reordering.googlecode.com/svn/trunk/multipleTables.
html
Thanks,
Jovan
Original comment by joc...@gmail.com
on 28 May 2013 at 8:21
Original issue reported on code.google.com by
lgma...@fs.fed.us
on 20 Jul 2012 at 8:00Attachments: