title: How to disable DataTables paging after initialization?
body: <p>I have a DataTable with pagination enabled and I need to disable this setting and show all the results without pager by pressing a button.</p>
  
  <p>I'm trying to access the already defined settings, change the paging to false, and redraw the table, but it doesn't work. I searched and tried similar forum threads without success.</p>
  
  <p>Any idea how can I achieve that? </p>
  
  <p><a href="https://jsfiddle.net/chimos/3d0098ta/" rel="noreferrer"><strong>Here's a demo</strong></a> with my not-working code</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div id="main_wrapper"&gt;
      &lt;button class="form_button destroy_pager" type="button" onclick="" title="Destroy pager"&gt;Destroy pager&lt;/button&gt;
  
      &lt;table id="example" cellpadding="0" cellspacing="0" border="0"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;Column 1&lt;/th&gt;
                  &lt;th&gt;Column 2&lt;/th&gt;
                  &lt;th&gt;Column 3&lt;/th&gt;
                  &lt;th&gt;Column 4&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;Data 1&lt;/td&gt;
                  &lt;td&gt;Data 2&lt;/td&gt;
                  &lt;td&gt;Data 3&lt;/td&gt;
                  &lt;td&gt;Data 4&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>jQuery:</strong></p>
  
  <pre><code>$(document).ready(function() {
  
      var oTable = $('#example').DataTable({
          'bPaginate': true,
          'iDisplayLength': 5
      });
  
      $('button.destroy_pager').on('click', function() {        
          var oSettings = oTable.settings;
          oSettings.bPaginate  = false;
          oTable.draw();
      });
  
  
  });
  </code></pre>
  
  <p><strong>EDIT:</strong> I need to have the pager enabled when I initialise the DataTable. The problem is that I have to disable it after the button press.</p>
  
  <p>Thanks in advance  </p>