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

  • Question

  • Hi,

    I have created table like this

    $(document).ready(function () {
                "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


    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%">




    I used this to refresh datatable:

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

                ref.ajax.reload(null, false);

    its giving below error


    Thursday, May 2, 2019 1:37 PM


All replies