{"id":2811,"date":"2024-12-31T20:26:43","date_gmt":"2024-12-31T20:26:43","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/learn-to-fix-magento-2-reset-button-in-grid-column-not-working\/"},"modified":"2025-03-24T12:37:14","modified_gmt":"2025-03-24T12:37:14","slug":"magento-2-reset-button-in-grid-column-not-working","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/magento-2-reset-button-in-grid-column-not-working\/","title":{"rendered":"Learn to Fix Magento 2 Reset Button in Grid Column Not Working"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Magento 2 Reset button in grid column not working? You\u2019re at the right place then!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.adobe.com\/commerce\/docs\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 UI component<\/a>\u00a0grid offers a simplistic view of data in tabular format, making it accessible to merchants. The merchant can also show\/hide certain columns from the grid by using the Columns dropdown menu provided at the top-right corner of the grid. The Reset button is intended to restore the default configuration of columns.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s pretty helpful when you\u2019re looking for specific data from your admin panel. You can switch back to the default columns by using the Reset button. Yet, if you\u2019re developing a custom component UI grid in Magento 2, this functionality may need your extra attention. Recently, I came across a scenario where the Reset columns functionality in a custom grid was not working as expected.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2023\/06\/Column-Reset-Button.png\" alt=\"Column Reset Button\" class=\"wp-image-32301\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">In case you\u2019ve&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/create-admin-grid-magento-2\/\">created a custom admin UI grid in Magento 2<\/a>, and the&nbsp;<strong>Reset<\/strong>&nbsp;columns button is not working, then this solution post is for you! Learn the complete method that I used to fix the&nbsp;<strong>Reset&nbsp;<\/strong>button not working for columns in Magento 2 admin UI grid.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"method-to-fix-reset-button-in-grid-column-not-working-in-magento-2\">Method to Fix Magento 2 Reset Button in Grid Column Not Working<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There can be several reasons why the&nbsp;<strong>Reset<\/strong>&nbsp;button is not working in the admin UI grid in Magento 2. In most cases, this can be solved by defining bookmarks in the grid; follow these steps to do that:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong>&nbsp;Open the .xml file of the UI grid. It is present at&nbsp;<em><strong>app\/code\/Vendor\/Module\/view\/adminhtml\/ui_component\/{grid_name}.xml<\/strong><\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong>&nbsp;Add the following code within the listingToolbar node:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;listingToolbar name=\"listing_top\">\n   ...\n   &lt;bookmark name=\"bookmarks\">\n       &lt;argument name=\"data\" xsi:type=\"array\">\n           &lt;item name=\"config\" xsi:type=\"array\">\n               &lt;item name=\"storageConfig\" xsi:type=\"array\">\n                   &lt;item name=\"namespace\" xsi:type=\"string\">customer_listing&lt;\/item>\n               &lt;\/item>\n           &lt;\/item>\n       &lt;\/argument>\n   &lt;\/bookmark>\n   ...\n&lt;\/listingToolbar><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:<\/strong> Flush Magento 2 cache by using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it! Adding the bookmarks will fix the&nbsp;<strong>Reset<\/strong>&nbsp;button not working issue in the grid column and it will start working as expected  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In case you still have any doubts or queries about Magento 2 reset button in Grid column not working, feel free to comment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to share this post if it has helped you! Send it to your colleagues or share it on social media  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Gracias  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2 Reset button in grid column not working? You\u2019re at the right place then! Magento 2 UI component\u00a0grid offers a simplistic view of data&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2811","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=2811"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2811\/revisions"}],"predecessor-version":[{"id":10923,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2811\/revisions\/10923"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=2811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=2811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=2811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}