aDataSort' of undefined

aDataSort' of undefined

susersuser Posts: 68Questions: 18Answers: 0
edited September 2016 in Free community support

I try this datatable format
https://datatables.net/extensions/buttons/examples/html5/simple.html

and also i try export feature

code


<link href="Styles/stylechart.css" rel="stylesheet" /> <!--for date--%>--> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css" /> <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script> <script type="text/javascript" src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script> <link rel="stylesheet" type="text/css" href="http://www.shieldui.com/shared/components/latest/css/light/all.min.css" /> <%--for tabledata--%> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script> <script src="Scripts/gridviewScroll.js" type="text/javascript"></script> <script src="Scripts/gridviewScroll.min.js" type="text/javascript"></script> <link href="Styles/gridviewScroll.css" rel="stylesheet" /> <script type="text/javascript" src="//code.jquery.com/jquery-1.12.3.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script> <script type="text/javascript" src="//cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script> <script type="text/javascript" src="//cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script> <script type="text/javascript" src="//cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css" /> <link href="Styles/grid/buttons.dataTables.min.css" rel="stylesheet" />

and

<script type="text/javascript">
        $(document).ready(function () {
            $('#tabledata').DataTable({
                dom: 'Bfrtip',
                buttons: [
                    'copyHtml5',
                    'excelHtml5',
                    'csvHtml5',
                    'pdfHtml5'
                ]
            });
        });

</script>

but this show error on console

jquery.dataTables.min.js:65 Uncaught TypeError: Cannot read property 'aDataSort' of undefined

This discussion has been closed.