asp.net - Jquery dataTable showing wrong number of row entries. -


trying make use of jquery datatable plugin application have issue it. if table has 2 records, shows 2 records on table , shows "showing 1 1 of 1 entries" . also, want export content excel or copy clipboard. copies or export 1 row. example , if datatable has 4 rows, copy 1 row , see "showing 1 1 of 1 entries" @ footer

$(document).ready(function () {

       $('#ex').datatable({             destroy: true,            ordering: true,             responsive: true,             "paging": true,             "bautowidth": false,             "searching": true,             dom: 'bfrtip',             buttons: [        'copyhtml5',        'excelhtml5',        'csvhtml5',        'pdfhtml5'             ]         });      ;     }); </script> 

i have added following flies it. note: i'm using in asp.net application.

<script src="<%: resolveurl("plugins/datatables/jquery-3.2.1.js")%>"></script>          <script src="<%: resolveurl("plugins/jqueryui/jquery-ui.js")%>"></script> <script src="<%: resolveurl("plugins/datatables/jquery.datatables.min.js")%>"></script> <link href="<%: resolveurl("plugins/datatables/jquery.datatables.min.css")%>" rel="stylesheet" /> <link href="<%: resolveurl("plugins/datatables/button.datatables.min.css")%>" rel="stylesheet" />     <link href="<%: resolveurl("plugins/datatables/responsive.datatables.min.css")%>" rel="stylesheet" />       <script src="<%: resolveurl("plugins/datatables/datatables.responsive.min.js")%>"></script>  <script src="<%: resolveurl("plugins/datatables/datatables.buttons.min.js")%>"></script> <script src= "<%: resolveurl("plugins/datatables/buttons.flash.min.js")%>"></script>  <script src="<%: resolveurl("plugins/datatables/jszip.min.js")%>"></script> <script src="<%: resolveurl("plugins/datatables/pdfmake.min.js")%>"></script> <script src="<%: resolveurl("plugins/datatables/vfs_fonts.js")%>"></script>         <script src= "<%: resolveurl("plugins/datatables/buttons.html5.min.js")%>"></script>         <script src="<%: resolveurl("plugins/datatables/buttons.print.min.js")%>"></script> 


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -