Using Jquery DataGrid with PHP and MySql as a Datagrid Part 2

Jquery Datatables has lots of options that allows fine control over the display of the table. The options can be provided as parameters at the time of initialization. Some of the options are
?

  
01
02
03
04
05
06
07
08
09
10
11
<script type="text/javascript">
$(document).ready(function(e) {
    $('.data-grid').dataTable(
     {
          "paging":   false,
          "ordering": false,
          "info":     false
     });
});
</script>

  
<script type="text/javascript">
$(document).ready(function(e) {
    $('.data-grid').dataTable(
     {
          "paging":   false,
          "ordering": false,
          "info":     false

     });
});
</script> 
 
 
To change the number of records displayed in a table, change the "pageLength" option. For example 
 
"pageLength": 50 
 
A full list of options is available at https://datatables.net/reference/option/ 
 
 

No comments:

Post a Comment

Running Drupal in Docker

I will assume that you have already installed docker. If you haven't installed docker please visit https://www.docker.com/ to download a...