{"id":1696,"date":"2020-04-02T05:11:14","date_gmt":"2020-04-02T05:11:14","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=1696"},"modified":"2021-07-22T02:56:15","modified_gmt":"2021-07-22T02:56:15","slug":"how-to-custom-admin-grid-in-magento","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/","title":{"rendered":"How To Custom Admin Grid In Magento 2"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>In the previous lesson, I introduced How To Create Admin Grid In Magento 2. You should read that lesson to be able to do How To Custom Admin Grid In Magento 2 lesson.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Module File Structure<\/h2>\n\n\n\n<p>We updated our module file structure looks as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"785\" data-attachment-id=\"1705\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/custom-admin-grid-folder-structure\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/custom-admin-grid-folder-structure.png?fit=450%2C785&amp;ssl=1\" data-orig-size=\"450,785\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"custom-admin-grid-folder-structure\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/custom-admin-grid-folder-structure.png?fit=172%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/custom-admin-grid-folder-structure.png?fit=450%2C785&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/custom-admin-grid-folder-structure.png?resize=450%2C785&#038;ssl=1\" alt=\"custom admin grid folder structure\" class=\"wp-image-1705\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/custom-admin-grid-folder-structure.png?w=450&amp;ssl=1 450w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/custom-admin-grid-folder-structure.png?resize=172%2C300&amp;ssl=1 172w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Add action to admin grid<\/h2>\n\n\n\n<p>Here I will guide adding checkbox actions, edit links.<\/p>\n\n\n\n<p>You edit the file helloworld_posts_grid_block.xml.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1075\" height=\"707\" data-attachment-id=\"1697\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/add-action-here\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-here.png?fit=1075%2C707&amp;ssl=1\" data-orig-size=\"1075,707\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"add-action-here\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-here.png?fit=300%2C197&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-here.png?fit=800%2C526&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-here.png?fit=800%2C526&amp;ssl=1\" alt=\"Add action code\" class=\"wp-image-1697\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-here.png?w=1075&amp;ssl=1 1075w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-here.png?resize=300%2C197&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-here.png?resize=1024%2C673&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-here.png?resize=768%2C505&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>You add the code below.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;!--Add action here--&gt;\n                &lt;block class=&quot;Magento\\Backend\\Block\\Widget\\Grid\\Massaction&quot;\n                       name=&quot;helloworld_posts_grid_block.grid.massaction&quot; as=&quot;grid.massaction&quot;&gt;\n                    &lt;arguments&gt;\n                        &lt;argument name=&quot;massaction_id_field&quot; xsi:type=&quot;string&quot;&gt;id&lt;\/argument&gt;\n                        &lt;argument name=&quot;form_field_name&quot; xsi:type=&quot;string&quot;&gt;posts&lt;\/argument&gt;\n                        &lt;argument name=&quot;options&quot; xsi:type=&quot;array&quot;&gt;\n                            &lt;item name=&quot;delete&quot; xsi:type=&quot;array&quot;&gt;\n                                &lt;item name=&quot;label&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Delete&lt;\/item&gt;\n                                &lt;item name=&quot;url&quot; xsi:type=&quot;string&quot;&gt;*\/*\/massDelete&lt;\/item&gt;\n                                &lt;item name=&quot;confirm&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Are you sure you want to delete?&lt;\/item&gt;\n                            &lt;\/item&gt;\n                            &lt;item name=&quot;enable&quot; xsi:type=&quot;array&quot;&gt;\n                                &lt;item name=&quot;label&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Enabled&lt;\/item&gt;\n                                &lt;item name=&quot;url&quot; xsi:type=&quot;string&quot;&gt;*\/*\/massStatus\/status\/1\/&lt;\/item&gt;\n                                &lt;item name=&quot;confirm&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Are you sure?&lt;\/item&gt;\n                            &lt;\/item&gt;\n                            &lt;item name=&quot;disable&quot; xsi:type=&quot;array&quot;&gt;\n                                &lt;item name=&quot;label&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Disabled&lt;\/item&gt;\n                                &lt;item name=&quot;url&quot; xsi:type=&quot;string&quot;&gt;*\/*\/massStatus\/status\/0\/&lt;\/item&gt;\n                                &lt;item name=&quot;confirm&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Are you sure?&lt;\/item&gt;\n                            &lt;\/item&gt;\n                        &lt;\/argument&gt;\n                    &lt;\/arguments&gt;\n                &lt;\/block&gt;\n<\/pre><\/div>\n\n\n<p>To create the edit link column, you add the code below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"342\" data-attachment-id=\"1698\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/add-edit-link-column\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-edit-link-column.png?fit=775%2C342&amp;ssl=1\" data-orig-size=\"775,342\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"add-edit-link-column\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-edit-link-column.png?fit=300%2C132&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-edit-link-column.png?fit=775%2C342&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-edit-link-column.png?resize=775%2C342&#038;ssl=1\" alt=\"add edit link column\" class=\"wp-image-1698\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-edit-link-column.png?w=775&amp;ssl=1 775w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-edit-link-column.png?resize=300%2C132&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-edit-link-column.png?resize=768%2C339&amp;ssl=1 768w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;!--Add Edit Link Column--&gt;\n                    &lt;block class=&quot;Magento\\Backend\\Block\\Widget\\Grid\\Column&quot; as=&quot;action&quot;\n                           acl=&quot;Magetop_Helloworld::posts_menu&quot;&gt;\n                        &lt;arguments&gt;\n                            &lt;argument name=&quot;id&quot; xsi:type=&quot;string&quot;&gt;action&lt;\/argument&gt;\n                            &lt;argument name=&quot;header&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Action&lt;\/argument&gt;\n                            &lt;argument name=&quot;type&quot; xsi:type=&quot;string&quot;&gt;action&lt;\/argument&gt;\n                            &lt;argument name=&quot;getter&quot; xsi:type=&quot;string&quot;&gt;getId&lt;\/argument&gt;\n                            &lt;argument name=&quot;filter&quot; xsi:type=&quot;boolean&quot;&gt;false&lt;\/argument&gt;\n                            &lt;argument name=&quot;sortable&quot; xsi:type=&quot;boolean&quot;&gt;false&lt;\/argument&gt;\n                            &lt;argument name=&quot;index&quot; xsi:type=&quot;string&quot;&gt;stores&lt;\/argument&gt;\n                            &lt;argument name=&quot;is_system&quot; xsi:type=&quot;boolean&quot;&gt;true&lt;\/argument&gt;\n                            &lt;argument name=&quot;actions&quot; xsi:type=&quot;array&quot;&gt;\n                                &lt;item name=&quot;view_action&quot; xsi:type=&quot;array&quot;&gt;\n                                    &lt;item name=&quot;caption&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Edit&lt;\/item&gt;\n                                    &lt;item name=&quot;url&quot; xsi:type=&quot;array&quot;&gt;\n                                        &lt;item name=&quot;base&quot; xsi:type=&quot;string&quot;&gt;*\/*\/edit&lt;\/item&gt;\n                                    &lt;\/item&gt;\n                                    &lt;item name=&quot;field&quot; xsi:type=&quot;string&quot;&gt;id&lt;\/item&gt;\n                                &lt;\/item&gt;\n                            &lt;\/argument&gt;\n                            &lt;argument name=&quot;header_css_class&quot; xsi:type=&quot;string&quot;&gt;col-actions&lt;\/argument&gt;\n                            &lt;argument name=&quot;column_css_class&quot; xsi:type=&quot;string&quot;&gt;col-actions&lt;\/argument&gt;\n                        &lt;\/arguments&gt;\n                    &lt;\/block&gt;\n<\/pre><\/div>\n\n\n<p>You access in Magento Admin Panel and check it. You can see checkbox action and edit link has been added.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1809\" height=\"449\" data-attachment-id=\"1699\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/add-action-to-admin-grid\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?fit=1809%2C449&amp;ssl=1\" data-orig-size=\"1809,449\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"add-action-to-admin-grid\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?fit=300%2C74&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?fit=800%2C198&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?fit=800%2C198&amp;ssl=1\" alt=\"add action to admin grid\" class=\"wp-image-1699\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?w=1809&amp;ssl=1 1809w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?resize=300%2C74&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?resize=1024%2C254&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?resize=768%2C191&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?resize=1536%2C381&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-action-to-admin-grid.png?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Show Image in Grid<\/h2>\n\n\n\n<p>To be able to Show Image in Grid, you need to create a field image in the magetop_blog table. This I have introduced in How To Create Database Table, you can review it <a href=\"https:\/\/www.magetop.com\/blog\/magento-2-how-to-create-database-table\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<p>After adding that field, we will add it to the admin grid.<\/p>\n\n\n\n<p>Still in file helloworld_posts_grid_block.xml, you add the code below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"544\" data-attachment-id=\"1700\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/add-image-column-to-admin-grid\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-column-to-admin-grid.png?fit=832%2C566&amp;ssl=1\" data-orig-size=\"832,566\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"add-image-column-to-admin-grid\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-column-to-admin-grid.png?fit=300%2C204&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-column-to-admin-grid.png?fit=800%2C544&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-column-to-admin-grid.png?resize=800%2C544&#038;ssl=1\" alt=\"add image column to admin grid\" class=\"wp-image-1700\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-column-to-admin-grid.png?w=832&amp;ssl=1 832w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-column-to-admin-grid.png?resize=300%2C204&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-column-to-admin-grid.png?resize=768%2C522&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;!--Add Image Column--&gt;\n                    &lt;block class=&quot;Magento\\Backend\\Block\\Widget\\Grid\\Column&quot; as=&quot;image&quot;&gt;\n                        &lt;arguments&gt;\n                            &lt;argument name=&quot;header&quot; xsi:type=&quot;string&quot; translate=&quot;true&quot;&gt;Image&lt;\/argument&gt;\n                            &lt;argument name=&quot;index&quot; xsi:type=&quot;string&quot;&gt;image&lt;\/argument&gt;\n                            &lt;argument name=&quot;renderer&quot; xsi:type=&quot;string&quot;&gt;Magetop\\Helloworld\\Block\\Adminhtml\\Renderer\\Image&lt;\/argument&gt;\n                        &lt;\/arguments&gt;\n                    &lt;\/block&gt;\n<\/pre><\/div>\n\n\n<p>In order for the image to be displayed, you need to create a file to render it.<\/p>\n\n\n\n<p>Create Image.php according to the path: Magetop\/Helloworld\/Block\/Adminhtml\/Renderer\/Image.php<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;?php\nnamespace Magetop\\Helloworld\\Block\\Adminhtml\\Renderer;\nuse Magento\\Backend\\Block\\Widget\\Grid\\Column\\Renderer\\AbstractRenderer;\n\n\nclass Image extends AbstractRenderer\n{\n    protected $storeManager;\n    public function __construct(\n        \\Magento\\Backend\\Block\\Context $context,\n        \\Magento\\Store\\Model\\StoreManagerInterface $storeManager,\n        array $data = &#x5B;])\n    {\n        parent::__construct($context, $data);\n        $this-&gt;storeManager = $storeManager;\n    }\n    public function render(\\Magento\\Framework\\DataObject $row)\n    {\n        $image = $this-&gt;_getValue($row);\n        $mediaUrl = $this -&gt;storeManager-&gt; getStore()-&gt;getBaseUrl(\\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA );\n        $strImage = '&lt;img width=&quot;100&quot; height=&quot;100&quot; src=&quot;'.$mediaUrl. 'helloworld\/images\/'.$image.'&quot; \/&gt;';\n\n        return $strImage;\n    }\n}\n<\/pre><\/div>\n\n\n<p>You need to add photos in the folder &lt;magento_root&gt;\/pub\/media\/helloworld\/images.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"247\" data-attachment-id=\"1701\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/add-image-sample-data\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-sample-data.png?fit=636%2C247&amp;ssl=1\" data-orig-size=\"636,247\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"add-image-sample-data\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-sample-data.png?fit=300%2C117&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-sample-data.png?fit=636%2C247&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-sample-data.png?resize=636%2C247&#038;ssl=1\" alt=\"add image in media folder\" class=\"wp-image-1701\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-sample-data.png?w=636&amp;ssl=1 636w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/add-image-sample-data.png?resize=300%2C117&amp;ssl=1 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/figure>\n\n\n\n<p>Then add it to the database.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1174\" height=\"270\" data-attachment-id=\"1702\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/image-in-database\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/image-in-database.png?fit=1174%2C270&amp;ssl=1\" data-orig-size=\"1174,270\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-in-database\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/image-in-database.png?fit=300%2C69&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/image-in-database.png?fit=800%2C184&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/image-in-database.png?fit=800%2C184&amp;ssl=1\" alt=\"add image value in table database\" class=\"wp-image-1702\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/image-in-database.png?w=1174&amp;ssl=1 1174w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/image-in-database.png?resize=300%2C69&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/image-in-database.png?resize=1024%2C236&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/image-in-database.png?resize=768%2C177&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>You access in Magento Admin Panel click your module and check it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1777\" height=\"861\" data-attachment-id=\"1703\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/check-image-column-in-admin-panel\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?fit=1777%2C861&amp;ssl=1\" data-orig-size=\"1777,861\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"check-image-column-in-admin-panel\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?fit=300%2C145&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?fit=800%2C388&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?fit=800%2C388&amp;ssl=1\" alt=\"check image column in admin panel\" class=\"wp-image-1703\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?w=1777&amp;ssl=1 1777w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?resize=300%2C145&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?resize=1024%2C496&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?resize=768%2C372&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?resize=1536%2C744&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/check-image-column-in-admin-panel.png?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>I hope through this series you can create your own complete module. Good luck!<\/p>\n\n\n\n<p>In addition to How To Custom Admin Grid In Magento 2, you can read the articles <a href=\"https:\/\/www.magetop.com\/blog\/how-to-add-mass-actions-in-magento\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Add Mass Actions In Magento 2<\/a>.<\/p>\n\n\n\n<p>Follow us for the more helpful article!<\/p>\n\n\n\n<p>We hope this is a useful series for you.<\/p>\n\n\n\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous lesson, I introduced How To Create Admin Grid In Magento 2. You should read that lesson to be able to do How To Custom Admin Grid In Magento 2 lesson.<\/p>\n","protected":false},"author":106,"featured_media":1750,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[355,354,356,358,357,107],"class_list":["post-1696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-tutorials","tag-custom-admin-grid-in-magento-2","tag-how-to-custom-admin-grid-in-magento-2","tag-magento-2-custom-admin-grid","tag-magento-2-how-to-add-action-admin-grid","tag-magento-2-how-to-show-image-in-admin-grid","tag-magento-2-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Custom Admin Grid In Magento 2 - Magetop Blog<\/title>\n<meta name=\"description\" content=\"In this lesson, I will introduce to How To Custom Admin Grid In Magento 2 lesson. You should read Magento 2 Extension Tutorial step by step.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Custom Admin Grid In Magento 2 - Magetop Blog\" \/>\n<meta property=\"og:description\" content=\"In this lesson, I will introduce to How To Custom Admin Grid In Magento 2 lesson. You should read Magento 2 Extension Tutorial step by step.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-02T05:11:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-22T02:56:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"445\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aaron LX\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aaron LX\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/\"},\"author\":{\"name\":\"Aaron LX\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\"},\"headline\":\"How To Custom Admin Grid In Magento 2\",\"datePublished\":\"2020-04-02T05:11:14+00:00\",\"dateModified\":\"2021-07-22T02:56:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/\"},\"wordCount\":294,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1\",\"keywords\":[\"Custom Admin Grid In Magento 2\",\"How To Custom Admin Grid In Magento 2\",\"Magento 2 custom admin grid\",\"magento 2 how to add action admin grid\",\"Magento 2 How to show image in admin grid\",\"magento 2 tutorials\"],\"articleSection\":[\"Magento 2 Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/\",\"name\":\"How To Custom Admin Grid In Magento 2 - Magetop Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1\",\"datePublished\":\"2020-04-02T05:11:14+00:00\",\"dateModified\":\"2021-07-22T02:56:15+00:00\",\"description\":\"In this lesson, I will introduce to How To Custom Admin Grid In Magento 2 lesson. You should read Magento 2 Extension Tutorial step by step.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1\",\"width\":750,\"height\":445,\"caption\":\"Magento 2 How To Custom Admin Grid\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Custom Admin Grid In Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\",\"name\":\"Aaron LX\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"caption\":\"Aaron LX\"},\"description\":\"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.\",\"url\":\"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Custom Admin Grid In Magento 2 - Magetop Blog","description":"In this lesson, I will introduce to How To Custom Admin Grid In Magento 2 lesson. You should read Magento 2 Extension Tutorial step by step.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/","og_locale":"en_US","og_type":"article","og_title":"How To Custom Admin Grid In Magento 2 - Magetop Blog","og_description":"In this lesson, I will introduce to How To Custom Admin Grid In Magento 2 lesson. You should read Magento 2 Extension Tutorial step by step.","og_url":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2020-04-02T05:11:14+00:00","article_modified_time":"2021-07-22T02:56:15+00:00","og_image":[{"width":750,"height":445,"url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1","type":"image\/png"}],"author":"Aaron LX","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Aaron LX","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/"},"author":{"name":"Aaron LX","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7"},"headline":"How To Custom Admin Grid In Magento 2","datePublished":"2020-04-02T05:11:14+00:00","dateModified":"2021-07-22T02:56:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/"},"wordCount":294,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1","keywords":["Custom Admin Grid In Magento 2","How To Custom Admin Grid In Magento 2","Magento 2 custom admin grid","magento 2 how to add action admin grid","Magento 2 How to show image in admin grid","magento 2 tutorials"],"articleSection":["Magento 2 Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/","url":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/","name":"How To Custom Admin Grid In Magento 2 - Magetop Blog","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1","datePublished":"2020-04-02T05:11:14+00:00","dateModified":"2021-07-22T02:56:15+00:00","description":"In this lesson, I will introduce to How To Custom Admin Grid In Magento 2 lesson. You should read Magento 2 Extension Tutorial step by step.","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1","width":750,"height":445,"caption":"Magento 2 How To Custom Admin Grid"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/how-to-custom-admin-grid-in-magento\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Custom Admin Grid In Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7","name":"Aaron LX","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","caption":"Aaron LX"},"description":"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.","url":"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Custom-Admin-Grid.png?fit=750%2C445&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-rm","jetpack-related-posts":[{"id":1402,"url":"https:\/\/www.magetop.com\/blog\/magento-2-extension-tutorial\/","url_meta":{"origin":1696,"position":0},"title":"Magento 2 Extension Tutorial","author":"Aaron LX","date":"February 15, 2020","format":false,"excerpt":"Magento 2 is an open-source platform that allows you can create a module for yourself. And those modules can extend functions for the Magento store. And in this article, I will introduce to Magento 2 Extension Tutorial.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Magetop Extension Tutorial","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/02\/Extension-Tutorial.jpg?fit=750%2C455&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/02\/Extension-Tutorial.jpg?fit=750%2C455&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/02\/Extension-Tutorial.jpg?fit=750%2C455&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/02\/Extension-Tutorial.jpg?fit=750%2C455&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1709,"url":"https:\/\/www.magetop.com\/blog\/how-to-add-mass-actions-in-magento\/","url_meta":{"origin":1696,"position":1},"title":"How To Add Mass Actions In Magento 2","author":"Aaron LX","date":"April 2, 2020","format":false,"excerpt":"In the previous lesson, I showed you How To Custom Admin Grid In Magento 2. Following that lesson, I will show you How To Add Mass Actions In Magento 2. This is a series on Magento 2 Extension Tutorial. The lessons are related to each other so you should read\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Magento 2 How To Add Mass Action","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Add-Mass-Action.png?fit=750%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Add-Mass-Action.png?fit=750%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Add-Mass-Action.png?fit=750%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Add-Mass-Action.png?fit=750%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1685,"url":"https:\/\/www.magetop.com\/blog\/how-to-create-admin-grid-in-magento\/","url_meta":{"origin":1696,"position":2},"title":"How To Create Admin Grid In Magento 2","author":"Aaron LX","date":"April 2, 2020","format":false,"excerpt":"In this lesson, I will show you How To Create Admin Grid In Magento 2. This is a very important lesson, but don't forget to refer to the previous article: How To Use Event In Magento 2. You should read the Magento 2 Extension Tutorial step by step.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Magento 2 How To Create Admin Grid","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Create-Admin-Grid.png?fit=750%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Create-Admin-Grid.png?fit=750%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Create-Admin-Grid.png?fit=750%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Create-Admin-Grid.png?fit=750%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1722,"url":"https:\/\/www.magetop.com\/blog\/admin-grid-crud-in-magento\/","url_meta":{"origin":1696,"position":3},"title":"Admin Grid CRUD In Magento 2","author":"Aaron LX","date":"April 2, 2020","format":false,"excerpt":"In the previous article, I introduced How To Add Mass Actions In Magento 2. In this article, we will learn about Admin Grid CRUD In Magento 2. This is a series on Magento 2 Extension Tutorial. The lessons are related to each other so you should read step by step.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Magento 2 Admin Grid CRUD","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-Admin-Grid-CRUD.png?fit=750%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-Admin-Grid-CRUD.png?fit=750%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-Admin-Grid-CRUD.png?fit=750%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-Admin-Grid-CRUD.png?fit=750%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1651,"url":"https:\/\/www.magetop.com\/blog\/how-to-use-event-in-magento-2\/","url_meta":{"origin":1696,"position":4},"title":"How To Use Event In Magento 2","author":"Aaron LX","date":"April 1, 2020","format":false,"excerpt":"In the previous article, we learned How To Use Helper And Setting In Magento 2. Following the previous tutorial, we will learn about How To Use Event in Magento 2. This is a very basic tutorial but it is very important.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Magento 2 How To Use Event","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Use-Event.png?fit=750%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Use-Event.png?fit=750%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Use-Event.png?fit=750%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/04\/Magento-2-How-To-Use-Event.png?fit=750%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5712,"url":"https:\/\/www.magetop.com\/blog\/configure-product-listings-in-magento-2\/","url_meta":{"origin":1696,"position":5},"title":"How To Configure Product Listings In Magento 2","author":"Aaron LX","date":"May 21, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Configure Product Listings In Magento 2. Configure the product listing on the category page to match your store\u2019s business intent.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Configure Product Listings In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Product-Listings-In-Magento-2.png?fit=1183%2C700&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Product-Listings-In-Magento-2.png?fit=1183%2C700&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Product-Listings-In-Magento-2.png?fit=1183%2C700&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Product-Listings-In-Magento-2.png?fit=1183%2C700&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Product-Listings-In-Magento-2.png?fit=1183%2C700&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/1696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=1696"}],"version-history":[{"count":5,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/1696\/revisions"}],"predecessor-version":[{"id":5896,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/1696\/revisions\/5896"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/1750"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=1696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=1696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=1696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}