Multiple Row Creation w/o submit

Multiple Row Creation w/o submit

Maha80Maha80 Posts: 30Questions: 10Answers: 1

Hi Allan,

is it able to create multiple new rows without submitting each in silent (do not show form) mode. I want to avoid a table draw for each new row, which leads to an incremental trigger of the column/preDraw callbacks.

Thx for your help in advace.

Kind regards

Martin

Answers

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

    Sort of. There are two options:

    • Use the drawType option of the form-options object and set it to be none. That will cause the table not to update after the submit is complete.
    • Use create() to create multiple rows in a single call.

    Allan

  • Maha80Maha80 Posts: 30Questions: 10Answers: 1

    Hi Allan,

    how do I have to use create() to create multiple rows in a single call? Do I have to use multiSet()?

    Thank you.

    Martin

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

    Yes - if you want to create multiple rows with different values you would need to use multiSet().

    Allan

This discussion has been closed.