title: datatables callback on pagination
body: <p>I'm implementing <a href="https://abpetkov.github.io/switchery/" rel="nofollow noreferrer">switchery</a> into datatable in this way</p>
  <p><strong>UPDATE</strong></p>
  <pre><code>  var table = $('#table').DataTable({
          pageLength: 25,
          responsive: true,
          deferRender: true,
          stateSave: false,
          info: false,
          ordering: false,
          dom: 'lTfgt&lt;&quot;float-left&quot;i&gt;p',
          ajax: {
              &quot;url&quot;: &quot;../src/routes.php&quot;,
              &quot;type&quot;: &quot;POST&quot;,
              &quot;async&quot;:true,
              &quot;dataType&quot;: &quot;json&quot;,
              &quot;data&quot;: function(d) {
                  d.call = &quot;data-vol&quot;;
                  d.dataform = $('#filtroForm').serialize();
                  d.market = JSON.stringify($('#jstree_topmarket').jstree(&quot;get_selected&quot;));
  
                  return d;
              }
          },
          language: {
              &quot;url&quot;: &quot;assets/js/plugins/dataTables/it_IT.txt&quot;
          },
          &quot;fnDrawCallback&quot;: function() {
              var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));
  
              elems.forEach(function(html) {
                  var switchery = new Switchery(html, { size: 'small' });
              });
          }
      });
  </code></pre>
  <p>and seems ok</p>
  <p><a href="https://i.stack.imgur.com/oGItW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oGItW.png" alt="enter image description here" /></a></p>
  <p>but when I switch to page 2 and then come back to page 1, I have this result</p>
  <p><a href="https://i.stack.imgur.com/xhnHF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xhnHF.png" alt="enter image description here" /></a></p>
  <p><strong>EDIT</strong></p>
  <p>Replacing <strong>fnDrawCallback</strong> with <strong>initComplete</strong> seems not working</p>
  <p><a href="https://i.stack.imgur.com/Z7tEp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z7tEp.png" alt="enter image description here" /></a></p>