After RowReordering rows duplicate
After RowReordering rows duplicate
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
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
This discussion has been closed.
Replies
Maybe saving script should return sth? My returns "ok"....