Object doesn't support property or method 'DataTable' in IE 11

Object doesn't support property or method 'DataTable' in IE 11

anadianadi Posts: 3Questions: 1Answers: 0

I am facing an issue i.e.Object doesn't support property or method 'DataTable' in IE 11 only and on a particular situation.

I am using Asp.net MVC.

  1. I have created bundles of datatable js files.

            bundles.Add(new ScriptBundle("~/bundles/datatable").Include(
            "~/Scripts/Metronic/GridLib/jquery.dataTables.min.js",
            "~/Scripts/Metronic/GridLib/dataTables.colReorder.min.js",
            "~/Scripts/Metronic/GridLib/dataTables.bootstrap4.min.js",
            "~/Scripts/Metronic/GridLib/dataTables.buttons.min.js",
            "~/Scripts/Metronic/GridLib/pdfmake.min.js",
            "~/Scripts/Metronic/GridLib/vfs_fonts.js",
            "~/Scripts/Metronic/GridLib/buttons.html5.min.js",
            "~/Scripts/Metronic/GridLib/buttons.print.min.js",
            "~/Scripts/Metronic/GridLib/dataTables.fixedColumns.min.js",
             "~/Scripts/Metronic/GridLib/jszip.min.js",
             "~/Scripts/Pages/equipment/jquery.selectlistactions.js"
            ));
    
  2. Then optimizing the js files for reducing the files size.
    BundleTable.EnableOptimizations = true;

Everything is working fine except IE 11 ( and in IE the problem occurs if the minification is used or the BundleTable.EnableOptimizations value is true).

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @anadi ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.