none
update Sharepoint list and refersh/reload data on datatable (bootstrap)

    Question

  • Hi,

    I have created table like this

    $(document).ready(function () {
            $('#tbldocApproved').DataTable({
                "lengthMenu": [[5, 25, 50, -1], [5, 25, 50, "All"]],
                "pagingType": "simple_numbers",
                destroy: true
            });
        });

    after inserting/updating record I can make those changes on particular row using

    $(rowid).remove() //// and so on

    problem:

    I want to refresh datatable, I am trying to use like this "tbldocApproved'" its id of html table which is created like this 

     <table id="tbldocApproved" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">

         ---

         ---

        </table>

    I used this to refresh datatable:

      var ref = $('#tbldocApproved').DataTable();

                ref.ajax.reload(null, false);

    its giving below error

    Thanks



    Thursday, May 2, 2019 1:37 PM

Answers

All replies