yash-arsenal / jquery-datatables-editable

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

Only first page of mult-page table is editable. #167

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Editing only works on first page of multi-page table. This works as 
expected reaching server and updating db record along with client side 
callback(s) firing, but only on first page of records. 

What is the expected output? What do you see instead?
Double clicking cell should open text input for editing. Nothing happens

What version of the product are you using? On what operating system?
2.3.3

Please provide any additional information below.

Original issue reported on code.google.com by satellit...@gmail.com on 2 May 2014 at 7:54

GoogleCodeExporter commented 8 years ago
Further investigation has revealed that editing breaks when using Datables 
deferred rendering. When fnApplyEditable(aonodes) is invoked in makeditable() 
only the nodes currently rendered in the table - the first 10 - have the nTr 
object populated, so the event handler only gets bound to those rows.  

Presumably the solution is to bind a function to the Datables draw event and 
then invoke fnApplyEditable again. Is there a better way? 

Original comment by satellit...@gmail.com on 3 May 2014 at 2:33