Refresh DataTable when editor.create form has been submitted
Refresh DataTable when editor.create form has been submitted
Hi
I am using the Editor plugin and want to re-load the Datatable after a new record has been created with the editor.create form , my code is as below.
I have tried a few things but none of them seem to work , so some pointers would be great.
$('a.editor_create').on('click', function (e) {
e.preventDefault();
editor.field('contract_type').update(dropDownsData['contract']);
editor.field('account_manager').update(dropDownsData['accounts']);
editor.field('client_source_id').update(dropDownsData['source']);
editor.create( {
title: 'Create new record',
buttons: 'Add'
} );
} );
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @waseemly ,
Does this thread here help?
Cheers,
Colin
Thank you very much , solved the problem.