Articles tagged with: grid
This article shows, how you can add a new column at the end of the admin grid or after any column of the admin grid in Magento 1.x.
Suppose, you have a custom module and you need to add a column to product grid or order grid, etc. For this, you need to rewrite that particular grid block with your custom module’s block grid class.
By default, Magento allows maximum of 200 items to be viewed at a time in admin grid. Admin grid pagination contains maximum of 200 items in a single page.
Here is a quick tip to hide any column from admin grid in Magento. Hiding columns in admin grid becomes necessary when you want those particular columns in exported csv or xml file but you don’t want to display them in the admin grid.
You can hide columns from admin grid by setting column_css_class and header_css_class as no-display to the column you want to hide in the addColumn function. This will hide your column from the admin grid. However, this column will be present when you export the grid data …
Here, I am taking the scenario of a custom Magento module. You are developing a custom Magento module and you don’t want to show the ‘Add New’ button in the Grid. The Add New button is present in top right corner of Grid Page.
Rename ‘Add New’ button
Suppose you have a multi select attribute and you have displayed it in admin grid. You have displayed the multi select attribute options as selection list. Now, you want to filter/search the grid by the multiselect attribute.
The problem here is that the multiselect attribute value is store as comma separated value in database. When we send single value from the selection list, the filter doesn’t work properly.
You can choose the Catalog view option as grid only or list only. The default is Grid/List. You can change it to List/Grid as well.
To do so: