how to create multiple rows using create api without showing forms?

how to create multiple rows using create api without showing forms?

sohulightsohulight Posts: 2Questions: 2Answers: 0
edited May 2017 in Free community support

I am new to javascript and datatables. I want to use api to add mulitple rows one time programatically. However, it (No1 case) does not work. it only works when I set the 'Show' to 'true' and click 'Save' button while the form appears. Below are two cases.

No 1. editor.create( 3, false, {
title: 'Add new record',
buttons: 'Save'
} );

No 2. editor.create(3,true, {
title: 'Add new record',
buttons: 'Save'
})

using this one works when I click 'Save' button.

Answers

  • allanallan Posts: 63,892Questions: 1Answers: 10,530 Site admin

    You need to call the submit() method to submit the form.

    Regards,
    Allan

This discussion has been closed.