Create new row in DT without Form popup

Create new row in DT without Form popup

burkheartburkheart Posts: 2Questions: 1Answers: 0

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

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    There must be a setting that controls this behavior.

    I'm afraid not - sorry. You could create an empty row in the database by using create() and submit() - 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

  • burkheartburkheart Posts: 2Questions: 1Answers: 0

    Thanks for your response. I will give you suggestion a try. I am using a Javascript source so the empty row is manageable.

This discussion has been closed.