Create new row in DT without Form popup
Create new row in DT without Form popup
Hi,
I created a data table and editor. The DT has a "New" button to create a new row:
... dom: "Bt", buttons: [ { extend: "create", editor: editor } ], ...
When I click "New" it pops up an edit form. I am solely using inline editing in my table so this is not a desired behavior.
Instead I would like the behavior of that "New" button so that it simply creates a blank new row without the popup.
There must be a setting that controls this behavior. I am sure I am missing something...
Thanks in advance!
This question has an accepted answers - jump to answer
Answers
I'm afraid not - sorry. You could create an empty row in the database by using
create()
andsubmit()
- and then allow inline editing on that new row, but that does mean that there is an empty row in the database for a period of time which you may or may not want.Allan
Thanks for your response. I will give you suggestion a try. I am using a Javascript source so the empty row is manageable.