Topic: duplicate select list in data-table

mostafamaterial free asked 5 years ago


Hello ,

I have a problem with dataTable elements : pagination and select list are duplicated

I use MaterialAdminLTE

enter image description here

$.material.init();
<!-- DataTables -->
<script src="http://crm.test/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="http://crm.test/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="http://crm.test/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="http://crm.test/bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="http://crm.test/dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="http://crm.test/dist/js/demo.js"></script>

<script>
    $(function () {
        $('#example1').DataTable()
    })
</script>

MDBootstrap staff answered 5 years ago


Hi mostafamaterial,

I have to inform you that we can not guarantee that our package will behave correctly with the libraries you are using to customize your tables. In your example, I can not find our tables scripts. That might be an indicator of the fact that the problem of double initialization is caused by another script you are using.

If you need any help I am here for you.

Best Regards, Piotr



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.0.1
  • Device: pc
  • Browser: chrom
  • OS: windows 10
  • Provided sample code: No
  • Provided link: Yes