Magento 2: Change per page option for customer, Order & product Admin GridModified JS file not changing Magento 2 Backend paging gridHow can i rewrite TierPrice Block in Magento2Magento 2 - How to remove “Add New Customer” button in Index Admin CustomerMagento 2 - Customize Customer Grid Collection DataMagento 2 - How to add a custom column in customer gridMagento2 : How to enable inline edit in catalog grid without changing source code?Magento 2.1 Create a filter in the product grid by new attributeChange Sort Order of Edit Action Customer Grid ColumnMagento 2: grid data source definition in compact formUncaught TypeError for download product magento 2.2.7 adminHow to override to remove/comment a line in customer_listing.xml in Magento 2

"How do you solve a problem like Maria?"

Can ads on a page read my password?

Why are the inside diameters of some pipe larger than the stated size?

How to explain to a team that the project they will work for 6 months will 100% fail?

Can I say "if a sequence is not bounded above, then it is divergent to positive infinity" without explicitly saying it's eventually increasing?

Is this cheap "air conditioner" able to cool a room?

Is there a loss of quality when converting RGB to HEX?

How is the return type of a ternary operator determined?

How would a family travel from Indiana to Texas in 1911?

Purchased new computer from DELL with pre-installed Ubuntu. Won't boot. Should assume its an error from DELL?

How to realistically deal with a shield user?

How quickly could a country build a tall concrete wall around a city?

Finish the Mastermind

Double blind peer review when paper cites author's GitHub repo for code

In Pokémon Go, why does one of my Pikachu have an option to evolve, but another one doesn't?

In a topological space if there exists a loop that cannot be contracted to a point does there exist a simple loop that cannot be contracted also?

Is it really ~648.69 km/s Delta-V to "Land" on the Surface of the Sun?

Independent table row spacing

Non-OR journals which regularly publish OR research

How can glass marbles naturally occur in a desert?

Our group keeps dying during the Lost Mine of Phandelver campaign. What are we doing wrong?

Was there ever a difference between 'volo' and 'volo'?

Does bottle color affect mold growth?

In the movie Harry Potter and the Order or the Phoenix, why didn't Mr. Filch succeed to open the Room of Requirement if it's what he needed?



Magento 2: Change per page option for customer, Order & product Admin Grid


Modified JS file not changing Magento 2 Backend paging gridHow can i rewrite TierPrice Block in Magento2Magento 2 - How to remove “Add New Customer” button in Index Admin CustomerMagento 2 - Customize Customer Grid Collection DataMagento 2 - How to add a custom column in customer gridMagento2 : How to enable inline edit in catalog grid without changing source code?Magento 2.1 Create a filter in the product grid by new attributeChange Sort Order of Edit Action Customer Grid ColumnMagento 2: grid data source definition in compact formUncaught TypeError for download product magento 2.2.7 adminHow to override to remove/comment a line in customer_listing.xml in Magento 2






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








1















As a default, Magento Admin has Paging option as 20, 30, 50,100,200 But I need to change it for Product, Customer & Order Grid.



I override the below files:



vendor/magento/module-customer/view/adminhtml/ui_component/customer_listing.xml
vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml
vendor/magento/module-catalog/view/adminhtml/ui_component/product_listing.xml


And Changed content inside tag:



From:



<paging name="listing_paging">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="storageConfig" xsi:type="array">
<item name="provider" xsi:type="string">sales_order_grid.sales_order_grid.listing_top.bookmarks</item>
<item name="namespace" xsi:type="string">current.paging</item>
</item>
<item name="selectProvider" xsi:type="string">sales_order_grid.sales_order_grid.sales_order_columns.ids</item>
</item>
</argument>
</paging>


To:



<paging name="listing_paging">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="storageConfig" xsi:type="array">
<item name="provider" xsi:type="string">customer_listing.customer_listing.listing_top.bookmarks</item>
<item name="namespace" xsi:type="string">current.paging</item>
</item>
<item name="selectProvider" xsi:type="string">customer_listing.customer_listing.customer_columns.ids</item>

<item name="sizesConfig" xsi:type="array">
<item name="value" xsi:type="string">25</item>
<item name="minSize" xsi:type="string">1</item>
<item name="maxSize" xsi:type="string">100</item>
<item name="options" xsi:type="array">
<item name="25" xsi:type="array">
<item name="value" xsi:type="string">25</item>
<item name="label" xsi:type="string">25</item>
</item>
<item name="30" xsi:type="array">
<item name="value" xsi:type="string">30</item>
<item name="label" xsi:type="string">30</item>
</item>
<item name="50" xsi:type="array">
<item name="value" xsi:type="string">50</item>
<item name="label" xsi:type="string">50</item>
</item>
<item name="100" xsi:type="array">
<item name="value" xsi:type="string">100</item>
<item name="label" xsi:type="string">100</item>
</item>
</item>
</item>
</item>
</argument>
</paging>


But it's not helpful. What am I doing wrong here?










share|improve this question
































    1















    As a default, Magento Admin has Paging option as 20, 30, 50,100,200 But I need to change it for Product, Customer & Order Grid.



    I override the below files:



    vendor/magento/module-customer/view/adminhtml/ui_component/customer_listing.xml
    vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml
    vendor/magento/module-catalog/view/adminhtml/ui_component/product_listing.xml


    And Changed content inside tag:



    From:



    <paging name="listing_paging">
    <argument name="data" xsi:type="array">
    <item name="config" xsi:type="array">
    <item name="storageConfig" xsi:type="array">
    <item name="provider" xsi:type="string">sales_order_grid.sales_order_grid.listing_top.bookmarks</item>
    <item name="namespace" xsi:type="string">current.paging</item>
    </item>
    <item name="selectProvider" xsi:type="string">sales_order_grid.sales_order_grid.sales_order_columns.ids</item>
    </item>
    </argument>
    </paging>


    To:



    <paging name="listing_paging">
    <argument name="data" xsi:type="array">
    <item name="config" xsi:type="array">
    <item name="storageConfig" xsi:type="array">
    <item name="provider" xsi:type="string">customer_listing.customer_listing.listing_top.bookmarks</item>
    <item name="namespace" xsi:type="string">current.paging</item>
    </item>
    <item name="selectProvider" xsi:type="string">customer_listing.customer_listing.customer_columns.ids</item>

    <item name="sizesConfig" xsi:type="array">
    <item name="value" xsi:type="string">25</item>
    <item name="minSize" xsi:type="string">1</item>
    <item name="maxSize" xsi:type="string">100</item>
    <item name="options" xsi:type="array">
    <item name="25" xsi:type="array">
    <item name="value" xsi:type="string">25</item>
    <item name="label" xsi:type="string">25</item>
    </item>
    <item name="30" xsi:type="array">
    <item name="value" xsi:type="string">30</item>
    <item name="label" xsi:type="string">30</item>
    </item>
    <item name="50" xsi:type="array">
    <item name="value" xsi:type="string">50</item>
    <item name="label" xsi:type="string">50</item>
    </item>
    <item name="100" xsi:type="array">
    <item name="value" xsi:type="string">100</item>
    <item name="label" xsi:type="string">100</item>
    </item>
    </item>
    </item>
    </item>
    </argument>
    </paging>


    But it's not helpful. What am I doing wrong here?










    share|improve this question




























      1












      1








      1








      As a default, Magento Admin has Paging option as 20, 30, 50,100,200 But I need to change it for Product, Customer & Order Grid.



      I override the below files:



      vendor/magento/module-customer/view/adminhtml/ui_component/customer_listing.xml
      vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml
      vendor/magento/module-catalog/view/adminhtml/ui_component/product_listing.xml


      And Changed content inside tag:



      From:



      <paging name="listing_paging">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="storageConfig" xsi:type="array">
      <item name="provider" xsi:type="string">sales_order_grid.sales_order_grid.listing_top.bookmarks</item>
      <item name="namespace" xsi:type="string">current.paging</item>
      </item>
      <item name="selectProvider" xsi:type="string">sales_order_grid.sales_order_grid.sales_order_columns.ids</item>
      </item>
      </argument>
      </paging>


      To:



      <paging name="listing_paging">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="storageConfig" xsi:type="array">
      <item name="provider" xsi:type="string">customer_listing.customer_listing.listing_top.bookmarks</item>
      <item name="namespace" xsi:type="string">current.paging</item>
      </item>
      <item name="selectProvider" xsi:type="string">customer_listing.customer_listing.customer_columns.ids</item>

      <item name="sizesConfig" xsi:type="array">
      <item name="value" xsi:type="string">25</item>
      <item name="minSize" xsi:type="string">1</item>
      <item name="maxSize" xsi:type="string">100</item>
      <item name="options" xsi:type="array">
      <item name="25" xsi:type="array">
      <item name="value" xsi:type="string">25</item>
      <item name="label" xsi:type="string">25</item>
      </item>
      <item name="30" xsi:type="array">
      <item name="value" xsi:type="string">30</item>
      <item name="label" xsi:type="string">30</item>
      </item>
      <item name="50" xsi:type="array">
      <item name="value" xsi:type="string">50</item>
      <item name="label" xsi:type="string">50</item>
      </item>
      <item name="100" xsi:type="array">
      <item name="value" xsi:type="string">100</item>
      <item name="label" xsi:type="string">100</item>
      </item>
      </item>
      </item>
      </item>
      </argument>
      </paging>


      But it's not helpful. What am I doing wrong here?










      share|improve this question
















      As a default, Magento Admin has Paging option as 20, 30, 50,100,200 But I need to change it for Product, Customer & Order Grid.



      I override the below files:



      vendor/magento/module-customer/view/adminhtml/ui_component/customer_listing.xml
      vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml
      vendor/magento/module-catalog/view/adminhtml/ui_component/product_listing.xml


      And Changed content inside tag:



      From:



      <paging name="listing_paging">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="storageConfig" xsi:type="array">
      <item name="provider" xsi:type="string">sales_order_grid.sales_order_grid.listing_top.bookmarks</item>
      <item name="namespace" xsi:type="string">current.paging</item>
      </item>
      <item name="selectProvider" xsi:type="string">sales_order_grid.sales_order_grid.sales_order_columns.ids</item>
      </item>
      </argument>
      </paging>


      To:



      <paging name="listing_paging">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="storageConfig" xsi:type="array">
      <item name="provider" xsi:type="string">customer_listing.customer_listing.listing_top.bookmarks</item>
      <item name="namespace" xsi:type="string">current.paging</item>
      </item>
      <item name="selectProvider" xsi:type="string">customer_listing.customer_listing.customer_columns.ids</item>

      <item name="sizesConfig" xsi:type="array">
      <item name="value" xsi:type="string">25</item>
      <item name="minSize" xsi:type="string">1</item>
      <item name="maxSize" xsi:type="string">100</item>
      <item name="options" xsi:type="array">
      <item name="25" xsi:type="array">
      <item name="value" xsi:type="string">25</item>
      <item name="label" xsi:type="string">25</item>
      </item>
      <item name="30" xsi:type="array">
      <item name="value" xsi:type="string">30</item>
      <item name="label" xsi:type="string">30</item>
      </item>
      <item name="50" xsi:type="array">
      <item name="value" xsi:type="string">50</item>
      <item name="label" xsi:type="string">50</item>
      </item>
      <item name="100" xsi:type="array">
      <item name="value" xsi:type="string">100</item>
      <item name="label" xsi:type="string">100</item>
      </item>
      </item>
      </item>
      </item>
      </argument>
      </paging>


      But it's not helpful. What am I doing wrong here?







      magento2 admin uicomponent pagination magento2.0.8






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 2 '18 at 12:37







      Akhil Gupta

















      asked Feb 2 '18 at 11:54









      Akhil GuptaAkhil Gupta

      1,6411 gold badge7 silver badges21 bronze badges




      1,6411 gold badge7 silver badges21 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0














          So finally I ended up with below solution. Check it out if you have same requirement:



          Below are two main files paging option comes:



          vendor/magento/module-ui/view/base/web/js/grid/paging/sizes.js
          vendor/magento/module-ui/view/base/web/templates/grid/paging/sizes.html


          Override in your theme. Now to change option in per page dropdown change below code as per your requirement:



           options: 
          '20':
          value: 20,
          label: 20
          ,
          '30':
          value: 30,
          label: 30
          ,
          '50':
          value: 50,
          label: 50
          ,
          '100':
          value: 100,
          label: 100
          ,
          '200':
          value: 200,
          label: 200

          ,


          Now do static content deploy php bin/magento s:s:d



          Note: This will make changes for all Admin Grids.






          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%2f212030%2fmagento-2-change-per-page-option-for-customer-order-product-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














            So finally I ended up with below solution. Check it out if you have same requirement:



            Below are two main files paging option comes:



            vendor/magento/module-ui/view/base/web/js/grid/paging/sizes.js
            vendor/magento/module-ui/view/base/web/templates/grid/paging/sizes.html


            Override in your theme. Now to change option in per page dropdown change below code as per your requirement:



             options: 
            '20':
            value: 20,
            label: 20
            ,
            '30':
            value: 30,
            label: 30
            ,
            '50':
            value: 50,
            label: 50
            ,
            '100':
            value: 100,
            label: 100
            ,
            '200':
            value: 200,
            label: 200

            ,


            Now do static content deploy php bin/magento s:s:d



            Note: This will make changes for all Admin Grids.






            share|improve this answer





























              0














              So finally I ended up with below solution. Check it out if you have same requirement:



              Below are two main files paging option comes:



              vendor/magento/module-ui/view/base/web/js/grid/paging/sizes.js
              vendor/magento/module-ui/view/base/web/templates/grid/paging/sizes.html


              Override in your theme. Now to change option in per page dropdown change below code as per your requirement:



               options: 
              '20':
              value: 20,
              label: 20
              ,
              '30':
              value: 30,
              label: 30
              ,
              '50':
              value: 50,
              label: 50
              ,
              '100':
              value: 100,
              label: 100
              ,
              '200':
              value: 200,
              label: 200

              ,


              Now do static content deploy php bin/magento s:s:d



              Note: This will make changes for all Admin Grids.






              share|improve this answer



























                0












                0








                0







                So finally I ended up with below solution. Check it out if you have same requirement:



                Below are two main files paging option comes:



                vendor/magento/module-ui/view/base/web/js/grid/paging/sizes.js
                vendor/magento/module-ui/view/base/web/templates/grid/paging/sizes.html


                Override in your theme. Now to change option in per page dropdown change below code as per your requirement:



                 options: 
                '20':
                value: 20,
                label: 20
                ,
                '30':
                value: 30,
                label: 30
                ,
                '50':
                value: 50,
                label: 50
                ,
                '100':
                value: 100,
                label: 100
                ,
                '200':
                value: 200,
                label: 200

                ,


                Now do static content deploy php bin/magento s:s:d



                Note: This will make changes for all Admin Grids.






                share|improve this answer













                So finally I ended up with below solution. Check it out if you have same requirement:



                Below are two main files paging option comes:



                vendor/magento/module-ui/view/base/web/js/grid/paging/sizes.js
                vendor/magento/module-ui/view/base/web/templates/grid/paging/sizes.html


                Override in your theme. Now to change option in per page dropdown change below code as per your requirement:



                 options: 
                '20':
                value: 20,
                label: 20
                ,
                '30':
                value: 30,
                label: 30
                ,
                '50':
                value: 50,
                label: 50
                ,
                '100':
                value: 100,
                label: 100
                ,
                '200':
                value: 200,
                label: 200

                ,


                Now do static content deploy php bin/magento s:s:d



                Note: This will make changes for all Admin Grids.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 3 '18 at 11:02









                Akhil GuptaAkhil Gupta

                1,6411 gold badge7 silver badges21 bronze badges




                1,6411 gold badge7 silver badges21 bronze badges






























                    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%2f212030%2fmagento-2-change-per-page-option-for-customer-order-product-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

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

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?