how to create multiple rows using create api without showing forms?
how to create multiple rows using create api without showing forms?
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
You need to call the
submit()
method to submit the form.Regards,
Allan