Refresh DataTable when editor.create form has been submitted

Refresh DataTable when editor.create form has been submitted

waseemlywaseemly Posts: 7Questions: 3Answers: 1
edited May 2018 in Editor

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

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @waseemly ,

    Does this thread here help?

    Cheers,

    Colin

  • waseemlywaseemly Posts: 7Questions: 3Answers: 1

    Thank you very much , solved the problem.

This discussion has been closed.