PsKs / jquery-datatables-editable

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

fnAddData() added data can't be made editable. #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Initialize a table using makeEditable()
2. Add a row using fnAddData()
3. try to select an editable field.

What is the expected output? What do you see instead?

I expected the editable cell in the new row to be editable, but  it appears that
_fnApplyEditable() doesn't get applied and I didn't see a means of calling it 
after creating the new row.

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

Please provide any additional information below.

I have attached an example that illustrates this.  When I click the 'add a row' 
button, I would like to make my new row(s) editable.

Original issue reported on code.google.com by normjaco...@gmail.com on 11 Aug 2011 at 8:33

Attachments:

GoogleCodeExporter commented 9 years ago
If you are using your own function for ading rows instead of the built in 
fuctionality then you will need to initialize editablye plugin for your new row.
There are lot of settings that should be used if you are using your own 
function so I recomment that you use built-in configuration. Otherwise see in 
the plugin function _fnApplyEditable and write similar code for applying 
editable plugin on the new row.

Original comment by joc...@gmail.com on 19 Aug 2011 at 10:24

GoogleCodeExporter commented 9 years ago
I will assume that the latest comment is an answer to the question

Original comment by joc...@gmail.com on 14 Sep 2011 at 9:26

GoogleCodeExporter commented 9 years ago
I'm experiencing the same issue.  I'm programmatically adding rows to my 
datatable (using the built-in DataTables fnAddRow function) and after adding 
them, they are not editable.  In comment 1, you mention "instead of built in 
functionality" - please explain what this built-in functionality is aside from 
the built-in fnAddRow function.  Thanks.

Original comment by ske...@gmail.com on 8 Mar 2012 at 1:08

GoogleCodeExporter commented 9 years ago
Firstly. Thank you for good plug-in.

The only way I have found with out forking this project 
to do this in a very ugly way is makeEditable() re-init.

That is I just call makeEditable() again after fnAddData().

Would it be possible to make the 

  function fnApplyEditable(aoNodes) ...

public?

Original comment by pol...@gmail.com on 18 Oct 2013 at 12:24