New answers tagged

1 vote

How filter dropdown options based on another dropdown selection in Magento2 UI grid filters

Credit to Victor, just refactored the code with working examples define( [ 'Magento_Ui/js/form/element/select', 'uiRegistry', 'underscore' ], function (Select, ...
user avatar
0 votes
Accepted

Is there any way to hide columns controls button in Magento2 admin UI component for specific user role

One more solution add custom PHP class to listingToolbar XML Code Create PHP class <COMPANY><MODULE>\Component\ManageControl">' and extend to Magento\Ui\Component\Container Add ...
user avatar
0 votes

Is there any way to hide columns controls button in Magento2 admin UI component for specific user role

It's little bit tricky, but i hope this way can help you app/code/Acme/StackExchange/etc/adminhtml/di.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="...
user avatar
1 vote
Accepted

How filter dropdown options based on another dropdown selection in Magento2 UI grid filters

The answer just a concept and i don't have enough time to provide full example, but hope this will help to understand a concept. 1. Custom Column Ui Component You need to create a custom column ...
user avatar
0 votes

Magento 2: how to set grid getRowUrl via the uiComponent

You can see the product grid as example. So you need add columns.settings and actionsColumn for your component xml file ... <columns name="entity_columns"> <settings> ...
user avatar
0 votes

Error:Something went wrong with processing the default view and we have restored the filter to its original state

The root cause of this problem came from the ui_bookmark table feature of Magento 2 to store the admin user’s states. It always has a current & default state for each view in the Magento back-end ...
user avatar
  • 101
0 votes

Magento 2 : Ui component displaying wrong date

Since 2.3.5, it's using different type for date: <column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date"...
user avatar
0 votes

Magento 2: How to add color picker in ui form

Simple way to add colorpicker in admin ui form Vendor/Module/view/adminhtml/ui_component/custom_form.xml <field name="background_color" sortOrder="2" formElement="...
user avatar
0 votes

How to use renderer in column ui component grid in magento 2

Found it. There's no "renderer" when it comes to UI Component, instead you need to use the bodyTmpl param to set a custom .html template for the cell, like this: <listing> [...] &...
user avatar
1 vote
Accepted

Filter admin order by store id magento 2

You should join the store table to the sales_order_grid table to add a store id (group id) to it: app/code/MageWorx/FilterByStore/etc/adminhtml/di.xml <?xml version="1.0"?> <...
user avatar
0 votes

Filter admin order by store id magento 2

Use this Query $this->collection->getSelect()->joinLeft( ['sales' => $this->collection->getResource()->getTable('sales_order')], 'main_table.entity_id = ...
user avatar
1 vote

Filter admin order by store id magento 2

Example how to add filter by store (group) in orders grid app/code/Acme/StackExchange/view/adminhtml/ui_component/sales_order_grid.xml <?xml version="1.0" encoding="UTF-8"?> &...
user avatar
0 votes

UI Component Grid Export CSV doesn't work when using custom DataProvider?

Figured out the problem. "Using the wrong Dataprovider type." Basically there are two kinds, you can refer below link: Magento 2 Data Providers Please check the Listing.xml file and compare ...
user avatar
0 votes

Hide a Ui Component Field based on condition on product edit

Magento combines the data from your product_form.xml file with any custom data in you modifier class. What the Magento docs are not very clear about is the merging order. Magento uses whatever your ...
user avatar
  • 649
0 votes

Page Builder not working for the custom ui form admin

I know this is a year late, but for anyone who has the same problem: Add this to the layout xml that's loading the ui component <update handle="styles"/> <update handle="editor&...
user avatar

Top 50 recent answers are included