arun-chief / jquery-datatables-row-reordering

Automatically exported from code.google.com/p/jquery-datatables-row-reordering
0 stars 0 forks source link

Row Ordering incorrect after updating rows with AJAX #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

What steps will reproduce the problem?

I create a Table and enable row ordering and everything is ok. My table has 
some checkboxes, which sends requests with AJAX by changing. If I change row 
ordering with this PlugIn, the checkbox values are incorrect after rerendering. 
Checkboxes which should be checked aren't and reverse.
It seems to me that there is an internal state of each row which contains the 
initial state.

What is the expected output? What do you see instead?
I see the initial state, I expect that the updated checkbox values will be 
correct.

What version of the product are you using? On what operating system?
JQuery 1.11.1
JQueryUI 1.11.0
Datatables 1.10.3
rowReordering 1.2.1

Kind regards

Original issue reported on code.google.com by oschnied...@googlemail.com on 10 Jun 2015 at 8:13

GoogleCodeExporter commented 8 years ago
var oTable = $(this).dataTable();
                //#var oTable = $('#' + this.context[0].nTable.id).dataTable();
in line 204 works for me

Original comment by wil...@guayaquilenlinea.com on 10 Jun 2015 at 9:25

GoogleCodeExporter commented 8 years ago
I have debugged the code more detail. The error was not in the row reordering 
plugin, but in datatables. I had included the datatables by cdn, which has 
caused the error. Now I include datatables (with version 1.10.7) direct by 
saving it on my webpage and everythings works fine.

It some strange error. Maybe there is a version conflict I could not see.

Original comment by oschnied...@googlemail.com on 14 Jun 2015 at 5:53