6
votes
Accepted
How to Hide Export XMl Opition in Magento 2
Found a solution by using custom class for export button.
<exportButton name="export_button" class="Vendor\Module\Component\ExportButton">
<argument name="data" xsi:type="array">
...
6
votes
How to Hide Export XMl Opition in Magento 2
Add a class to exportButton component:
<exportButton name="export_button" class="Vendor\Module\Ui\Component\ExportButton">
And create a class which extends Magento component:...
4
votes
How to Hide Export XMl Opition in Magento 2
You can update your XML file with this code
<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
3
votes
How can I hide the Paging in the Grid?
For magento 2, try below in construct method.
protected function _construct()
{
parent::_construct();
$this->setId('postGrid');
$this->setDefaultSort('customer_prescription_id');
...
2
votes
Magento 2 admin grid first row empty issue
First create your UI Component
<listingToolbar name="listing_top">
<exportButton class="Magento\Ui\Component\ExportButton" component="Magento_Ui/js/grid/export" displayArea="...
2
votes
Accepted
Magento2: How to add product images to custom ui-component admin grid
You can add _initSelect() method in your Collection.php file in your custom module
protected function _initSelect()
{
parent::_initSelect();
$this->getSelect()->joinLeft(
['cp' => $...
2
votes
Accepted
Filter Not Working for custom column ui_component grid Magento 2
In Your DataProvider File, there is a function named : addFilter(\Magento\Framework\Api\Filter $filter)
You have to modify that a little bit, I have added the sample code here, In which you can ...
1
vote
How can I get my custom news collection on frontend in magento 1.9?
Call below code instead
Remove:
<?php $newsCollection = $this->getNewsCollection(); ?>
Replace :
<?php $newsCollection = $this->_getNewsCollection(); ?>
1
vote
Magento2: Date showing wrong on grid column
If you want to render a date without timezone changes just add property timezone to column
$this->addColumn('process_ship_date', array(
'header' => __('Process Ship Date'),...
1
vote
Magento2: Date showing wrong on grid column
Magento Store Date in UTC format in Database.
While in Grid it will convert from UTC to Your magento store time.
So, save date in database in UTC format.
1
vote
Accepted
Magento 2 : Create comma seperated sku filter for custom product grid
As i correct understand, you are using UI Component. Following example how to add multiply SKU filter on product grid. I hope you can properly add to your custom grid
Acme/StackExchange/view/adminhtml/...
1
vote
Magento 2 How to get Admin Customer Edit Page edited Tab details
I have found out the file which is triggering the change, from there you can find which tab has been changed, the JS file path is - "vendor/magento/module-ui/view/base/web/js/form/components/area....
1
vote
Accepted
Magento 2 : Custom Module Admin Grid is not Showing
I resolved my issue. I found the solution in this link Type Error occurred when creating Interceptor after Updating to 2.3.2
Here is my changed Di.xml file
<config xmlns:xsi="http://www.w3.org/...
1
vote
Accepted
How to add custom select options in a custom admin form
Try with below code
Create source provider for email values
Vendor\Module\Model\Email\Options.php
<?php
namespace Vendor\Module\Model\Email;
class Options implements \Magento\Framework\Option\...
1
vote
Accepted
how to add content limit on custom admin grid
You can use renderer for each column to modify the content of it. For example for question column
Vendor/Module/view/adminhtml/ui_component/gridanswer_record_grid_list.xml
<column name="...
1
vote
custom grid filter doesn't work when filtering products by category (bl_customgride module)
I found a solution on this post.
Fixing Magento Invalid attribute name issue after SUPEE-11219
1
vote
Filter is not working on Custom Values in Magento 2 Order?
I have successfully applied filter by using following URL's
https://amasty.com/knowledge-base/how-to-add-a-custom-column-to-the-order-grid-in-magento-2.html and
https://meetanshi.com/blog/add-custom-...
1
vote
Filter is not working on Custom Values in Magento 2 Order?
You can also add column in sales_order_grid.xml
app/code/Vender/Module/view/adminhtml/ui_component/sales_order_grid.xml
<?xml version="1.0" encoding="UTF-8"?>
<listing ...
1
vote
Accepted
How to change date format of yyyy-mm-dd for dd-mm-yyyy on admin grid?
You can change the format of the date. Add this line to your code
<item name="dateFormat" xsi:type="string">Y-MM-dd HH:mm:ss</item>
Modify the date format according to you . For more ...
1
vote
Magento 2 How make title required in xml file
Try the required class
<arguments>
<argument name="required-entry" xsi:type="boolean">true</argument>
</arguments>
For more info:
https://devdocs.magento.com/guides/v2.3/...
1
vote
Accepted
Magento 2: How to disable or remove Product SKU field in the admin panel
You can do it by creating a custom module.
Create below required files for the module under below path:
app/code/Vendor/Module/registration.php
app/code/Vendor/Module/etc/module.xml
Create di.xml ...
1
vote
Magento 2: How to disable or remove Product SKU field in the admin panel
Yes you can make it not Editable as:
Create file in Vendor/Module/etc/adminhtml/events.xml:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="urn:...
1
vote
Magento 2 : How to hide add product button from admin panel
I am also not so sure but you can override Magento\Catalog\Block\Adminhtml\Product.php file
by giving in di.xml and can use $this->buttonList->remove('add_new'); in _prepareLayout function.
...
1
vote
Accepted
Magento 2 How to show column on the basis of admin config value in admin custom grid by using UiComponent?
Need to add to your UI component a new tag
<container name="listing_top">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<...
1
vote
How to add Approve and disapprove in admin grid Magento 2?
you can create mass action to approve or disapprove status in admin grid
1
vote
How to add Approve and disapprove in admin grid Magento 2?
You can add your status field in InstallSchema.php file
->addColumn(
'status',
\Magento\Framework\DB\Ddl\Table::TYPE_BOOLEAN,
'',
['nullable'...
1
vote
How to add Color Picker in Admin Ui Component in Magento 2?
Magento has default color picker element.
You can use that by following below xml code for your ui_component form.
<field name="FIELD_NAME">
<argument name="...
1
vote
How to add Color Picker in Admin Ui Component in Magento 2?
There is already a ColorPicker Component defined in the core.
vendor/magento/module-ui/view/base/ui_component/etc/definition/colorPicker.xsd
Try adding this to your form:
<colorPicker name="...
1
vote
Accepted
Magento 2 : base 64 is not defined error in image upload in admin grid
This kind of looks like the problem here:
If you're on Magento 2.3 I'd recommend making the changes given in the approved answer.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
custom-admin-grid × 57magento2 × 36
grid × 10
uicomponent × 9
admin × 8
magento2.3 × 7
filter × 5
magento-1.9 × 4
adminhtml × 3
admin-panel × 3
adminform × 3
database × 2
xml × 2
custom × 2
products × 2
magento2.4 × 2
search × 2
export × 2
order-grid × 2
custom-grid × 2
magento-2.1 × 1
product × 1
category × 1
magento2.2 × 1
api × 1