I want to remove the Select All option from the drop down in the Magento 2 admin product grid. enter image description here


For this, you have to create your own js which will extend the UI component multi-select js "module-ui/view/base/web/js/grid/columns/multiselect.js".

    <selectionsColumn name="ids">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="indexField" xsi:type="string">id</item>
                <item name="component" xsi:type="string">Vendor_Module/js/grid/columns/multiselect</item>
                <item name="label" xsi:type="string" translate="true">Select</item>

Now create a js in app/code/Vendor/Module/view/base/web/js/grid/columns/mulitselect.js

], function (_, $t, Column) {
   'use strict';

   return Column.extend({
      initialize: function () {
          //selectAll and deselectAll are first two options in ui multiselect js

Magento 2 used UI Component to render products grid at admin, you can use CSS to hide from dropdown.

.catalog-product-index .data-grid-multicheck-cell .action-menu > li:first-child { display: none; }
.catalog-product-index .data-grid-multicheck-cell label { pointer-events: none; }
  • 1
    using css to hide something is not as per magento standard – Gulshan Oct 4 '19 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.