jQuery DataTables.js How to Apply It On Admin GridMagento 2: jQuery Datatables Button Extentions Not WorkingHow to apply Slick slider to MagentoHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?using jQuery-ui accordion in checkout pageCSS not loading on page within Magento 2 pageMagento 2.2.5: Overriding Admin Controller sales/orderDatatable js include issue in magento2Magento 2.2.5: Add, Update and Delete existing products Custom Options

The deliberate use of misleading terminology

Why were the Night's Watch required to be celibate?

Is there a term for this?

Why is there a need to modify system call tables in Linux?

What is the most important characteristic of New Weird as a genre?

How crucial is a waifu game storyline?

How much current can Baofeng UV-5R provide on +V pin?

What does the behaviour of water on the skin of an aircraft in flight tell us?

Looking after a wayward brother in mother's will

Are academic associations obliged to comply with the US government?

Is American Express widely accepted in France?

Elegant way to prove congruence

Coding Challenge Solution - Good Range

What are the problems in teaching guitar via Skype?

How to write a vulnerable moment without it seeming cliche or mushy?

The qvolume of an integer

Asking for something with different prices

Should this code fail to compile in C++17?

Why don't I have ground wiring on any of my outlets?

Bringing Food from Hometown for Out-of-Town Interview?

Beginner's snake game using PyGame

Relativistic resistance transformation

Why use water tanks from a retired Space Shuttle?

Make a formula to get the highest score



jQuery DataTables.js How to Apply It On Admin Grid


Magento 2: jQuery Datatables Button Extentions Not WorkingHow to apply Slick slider to MagentoHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?using jQuery-ui accordion in checkout pageCSS not loading on page within Magento 2 pageMagento 2.2.5: Overriding Admin Controller sales/orderDatatable js include issue in magento2Magento 2.2.5: Add, Update and Delete existing products Custom Options






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I'm very new to Magneto, I'm trying to add jQuery DataTables in Magento 2.3, in below image i get error in console:



Here is my Code:



Add file in /EC/Downloads/view/adminhtml/requirejs-config.js.



var config = 
map:
'*':
dataTableJs: 'ES_Downloads/js/jquery.dataTables.min'


;


includ css file like below in /EC/Downloads/view/adminhtml/layout/downloads_index_reports.xml



-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="ES_Downloads::css/dataTables.min.css"/>
</head>


I moved my css and js files into respective folders. e.g
/EC/Downloads/view/adminhtml/web/js/datatables.min.js
/EC/Downloads/view/adminhtml/web/css/datatables.min.css



I used below code in my template file to load DataTable.



<table>
....
</table>

<script type="text/javascript">
require(['jquery', 'jquery/ui','dataTableJs'], function($)
$(document).ready(function($)
$('#example').DataTable();
);
);
</script>


Seems DataTable is not loading, getting below error in console:
enter image description here



Thanks in advance










share|improve this question




























    1















    I'm very new to Magneto, I'm trying to add jQuery DataTables in Magento 2.3, in below image i get error in console:



    Here is my Code:



    Add file in /EC/Downloads/view/adminhtml/requirejs-config.js.



    var config = 
    map:
    '*':
    dataTableJs: 'ES_Downloads/js/jquery.dataTables.min'


    ;


    includ css file like below in /EC/Downloads/view/adminhtml/layout/downloads_index_reports.xml



    -->
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
    <css src="ES_Downloads::css/dataTables.min.css"/>
    </head>


    I moved my css and js files into respective folders. e.g
    /EC/Downloads/view/adminhtml/web/js/datatables.min.js
    /EC/Downloads/view/adminhtml/web/css/datatables.min.css



    I used below code in my template file to load DataTable.



    <table>
    ....
    </table>

    <script type="text/javascript">
    require(['jquery', 'jquery/ui','dataTableJs'], function($)
    $(document).ready(function($)
    $('#example').DataTable();
    );
    );
    </script>


    Seems DataTable is not loading, getting below error in console:
    enter image description here



    Thanks in advance










    share|improve this question
























      1












      1








      1








      I'm very new to Magneto, I'm trying to add jQuery DataTables in Magento 2.3, in below image i get error in console:



      Here is my Code:



      Add file in /EC/Downloads/view/adminhtml/requirejs-config.js.



      var config = 
      map:
      '*':
      dataTableJs: 'ES_Downloads/js/jquery.dataTables.min'


      ;


      includ css file like below in /EC/Downloads/view/adminhtml/layout/downloads_index_reports.xml



      -->
      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <head>
      <css src="ES_Downloads::css/dataTables.min.css"/>
      </head>


      I moved my css and js files into respective folders. e.g
      /EC/Downloads/view/adminhtml/web/js/datatables.min.js
      /EC/Downloads/view/adminhtml/web/css/datatables.min.css



      I used below code in my template file to load DataTable.



      <table>
      ....
      </table>

      <script type="text/javascript">
      require(['jquery', 'jquery/ui','dataTableJs'], function($)
      $(document).ready(function($)
      $('#example').DataTable();
      );
      );
      </script>


      Seems DataTable is not loading, getting below error in console:
      enter image description here



      Thanks in advance










      share|improve this question














      I'm very new to Magneto, I'm trying to add jQuery DataTables in Magento 2.3, in below image i get error in console:



      Here is my Code:



      Add file in /EC/Downloads/view/adminhtml/requirejs-config.js.



      var config = 
      map:
      '*':
      dataTableJs: 'ES_Downloads/js/jquery.dataTables.min'


      ;


      includ css file like below in /EC/Downloads/view/adminhtml/layout/downloads_index_reports.xml



      -->
      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <head>
      <css src="ES_Downloads::css/dataTables.min.css"/>
      </head>


      I moved my css and js files into respective folders. e.g
      /EC/Downloads/view/adminhtml/web/js/datatables.min.js
      /EC/Downloads/view/adminhtml/web/css/datatables.min.css



      I used below code in my template file to load DataTable.



      <table>
      ....
      </table>

      <script type="text/javascript">
      require(['jquery', 'jquery/ui','dataTableJs'], function($)
      $(document).ready(function($)
      $('#example').DataTable();
      );
      );
      </script>


      Seems DataTable is not loading, getting below error in console:
      enter image description here



      Thanks in advance







      magento2 magento2.3 phtml js-css datatable.js






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 24 at 9:53









      Saif ZakirSaif Zakir

      437




      437




















          1 Answer
          1






          active

          oldest

          votes


















          0














          As i was somewhere else maybe mentally :P... Their were too many typo in my code:



          In /EC/Downloads/view/adminhtml/requirejs-config.js.



           var config = 
          map:
          '*':
          dataTables: 'EC_Downloads/js/datatables.min'


          ;


          In /EC/Downloads/view/adminhtml/layout/downloads_index_reports.xml



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <head>
          <css src="EC_Downloads::css/datatables.min.css"/>
          </head>


          In /EC/Downloads/view/adminhtml/templates/test.phtml



          <table>
          ...
          </table>

          <script>
          require(['jquery', 'jquery/ui','dataTables'], function($)
          $(document).ready(function($)
          $('#example').DataTable();
          );
          );
          </script>


          Run these command:



          sudo rm -rf var/ pub/static/adminhtml generated/
          sudo php bin/magento setup:di:compile
          sudo php bin/magento setup:static-content:deploy





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f275978%2fjquery-datatables-js-how-to-apply-it-on-admin-grid%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            As i was somewhere else maybe mentally :P... Their were too many typo in my code:



            In /EC/Downloads/view/adminhtml/requirejs-config.js.



             var config = 
            map:
            '*':
            dataTables: 'EC_Downloads/js/datatables.min'


            ;


            In /EC/Downloads/view/adminhtml/layout/downloads_index_reports.xml



            <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
            <head>
            <css src="EC_Downloads::css/datatables.min.css"/>
            </head>


            In /EC/Downloads/view/adminhtml/templates/test.phtml



            <table>
            ...
            </table>

            <script>
            require(['jquery', 'jquery/ui','dataTables'], function($)
            $(document).ready(function($)
            $('#example').DataTable();
            );
            );
            </script>


            Run these command:



            sudo rm -rf var/ pub/static/adminhtml generated/
            sudo php bin/magento setup:di:compile
            sudo php bin/magento setup:static-content:deploy





            share|improve this answer



























              0














              As i was somewhere else maybe mentally :P... Their were too many typo in my code:



              In /EC/Downloads/view/adminhtml/requirejs-config.js.



               var config = 
              map:
              '*':
              dataTables: 'EC_Downloads/js/datatables.min'


              ;


              In /EC/Downloads/view/adminhtml/layout/downloads_index_reports.xml



              <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
              <head>
              <css src="EC_Downloads::css/datatables.min.css"/>
              </head>


              In /EC/Downloads/view/adminhtml/templates/test.phtml



              <table>
              ...
              </table>

              <script>
              require(['jquery', 'jquery/ui','dataTables'], function($)
              $(document).ready(function($)
              $('#example').DataTable();
              );
              );
              </script>


              Run these command:



              sudo rm -rf var/ pub/static/adminhtml generated/
              sudo php bin/magento setup:di:compile
              sudo php bin/magento setup:static-content:deploy





              share|improve this answer

























                0












                0








                0







                As i was somewhere else maybe mentally :P... Their were too many typo in my code:



                In /EC/Downloads/view/adminhtml/requirejs-config.js.



                 var config = 
                map:
                '*':
                dataTables: 'EC_Downloads/js/datatables.min'


                ;


                In /EC/Downloads/view/adminhtml/layout/downloads_index_reports.xml



                <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                <head>
                <css src="EC_Downloads::css/datatables.min.css"/>
                </head>


                In /EC/Downloads/view/adminhtml/templates/test.phtml



                <table>
                ...
                </table>

                <script>
                require(['jquery', 'jquery/ui','dataTables'], function($)
                $(document).ready(function($)
                $('#example').DataTable();
                );
                );
                </script>


                Run these command:



                sudo rm -rf var/ pub/static/adminhtml generated/
                sudo php bin/magento setup:di:compile
                sudo php bin/magento setup:static-content:deploy





                share|improve this answer













                As i was somewhere else maybe mentally :P... Their were too many typo in my code:



                In /EC/Downloads/view/adminhtml/requirejs-config.js.



                 var config = 
                map:
                '*':
                dataTables: 'EC_Downloads/js/datatables.min'


                ;


                In /EC/Downloads/view/adminhtml/layout/downloads_index_reports.xml



                <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
                <head>
                <css src="EC_Downloads::css/datatables.min.css"/>
                </head>


                In /EC/Downloads/view/adminhtml/templates/test.phtml



                <table>
                ...
                </table>

                <script>
                require(['jquery', 'jquery/ui','dataTables'], function($)
                $(document).ready(function($)
                $('#example').DataTable();
                );
                );
                </script>


                Run these command:



                sudo rm -rf var/ pub/static/adminhtml generated/
                sudo php bin/magento setup:di:compile
                sudo php bin/magento setup:static-content:deploy






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 24 at 10:39









                Saif ZakirSaif Zakir

                437




                437



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f275978%2fjquery-datatables-js-how-to-apply-it-on-admin-grid%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form