After RowReordering rows duplicate

After RowReordering rows duplicate

Mike7Mike7 Posts: 2Questions: 0Answers: 0
edited July 2012 in Plug-ins
Hi everyone!
I'm trying to implement RowReordering plug-in into dataTable. Unfortunately i have a problem with it. Every time I reorder rows (after an ajax call is trigger to save new order) unexpectedly i have my rows duplicating! Have no idea why... Here's my code:

[code]$("#newsList").dataTable(
$.extend({"sAjaxSource": "<?PHP echo $dataSource; ?>", "aaSorting": [[ 1, "asc" ]]}, dataTableOpts)
).rowReordering({
sURL:"<?PHP echo $saveOrder; ?>",
sRequestType: "POST",
iIndexColumn: 1,
bGroupingUsed: false
);[/code]

And my dataTableOpts:

[code]{
"sAjaxSource": "",
"aaSorting": [
[1, "asc"]
],
"bPaginate": true,
"bScrollInfinite": true,
"bScrollCollapse": true,
"bProcessing": true,
"bServerSide": true,
"sScrollY": "750px",
"sScrollX": "100%",
"sScrollXInner": "100%",
"sPaginationType": "full_numbers",
"iDisplayLength": 50
}[/code]

Thx in advance!
Mike7

Replies

  • Mike7Mike7 Posts: 2Questions: 0Answers: 0
    Any ideas plz?

    Maybe saving script should return sth? My returns "ok"....
This discussion has been closed.