Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82388

Redraw different dataTable after updating other

$
0
0

I have two datatables on one page. After updating one I would like to see the results also appear in the second one. Is this possible?

I've been playing around with the draw() method as well as drawCallback. I'm not sure if I'm on the right track.

Code example below:

constraintEditor = new $.fn.dataTable.Editor( {
  ajax: {
    edit: {
      url: "/clients/aps/update",
      type: "PUT",
      data: function (d) {
        return JSON.stringify(d);
      },
      drawCallback: function ( settings ) {
        accountTable.draw();
      }
    }
  }

Viewing all articles
Browse latest Browse all 82388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>