Editor with submitOnBlur and serverSide fails
Editor with submitOnBlur and serverSide fails
Hi,
submitOnBlur with serverSide fails with(after data is submitted):
TypeError: idx is undefined
var col = dt.settings()[0].aoColumns[ idx.column ];
I couldn't build a test environment at DataTables JS bin, as editor is not included at that site.
Regards,
Erkan D.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi Erkan,
Thanks for your question. This should actually work - on this page if you open your browser's console and enter:
it will effectively enable inline editing for that table. If you do so, are you able to reproduce the issue you are seeing? It appears to work okay for me.
Thanks,
Allan
I forgot to mention that I'm using
inline editing
mode. Can you check it please?Thanks
The code I noted above uses inline editing - it specifically called the
inline()
method on the second line.Allan
Allan,
On editor examples at "Inline Editing" section, all examples (for example this )includes following code:
The example you mentioned is using tabletools to open a dialog for editing.
Regards
Hi,
Yes - as I noted above, you would need to open your browser's console to run the code above. That will effectively turn the server-side processing demo into an inline editing demo that uses server-side processing.
That is the configuration you noted that you were having a problem with, but I've been unable to reproduce the issue.
Are you able to give me a link to your page so I can just debug it directly?
Thanks,
Allan
Thanks for response. My example was also using tab navigation. On console I run this following code and than try tabbing on inline edit, I got error:
I think this is the same error.
Code:
Regards,
Erkan D.
Hi Erkan,
Thanks for the additional information that you are using the tabbing navigation.
Since that is the case I would suggest modifying
to be:
where
table
is the DataTable instance.The reason it won't work with a node being passed in is that after a redraw the original node you give it has been removed from the document. Passing in the cell index will allow it to work.
Allan
Thanks Allan, your suggestion solved the problem!
Regards,
Erkan D.