Questions tagged [grid]

The admin grid widget is a powerful tool to manage entities in the admin panel. For questions about the catalog grid view from Mage_Catalog, use the tag "grid-layout" instead.

Filter by
Sorted by
Tagged with
0 votes
3 answers
46 views

How to remove 'Create New Order' button from sales order grid

How can I remove 'Create New Order' button from sales order grid? I don't want to hide it, i know about following code <item name="style" xsi:type="string">display:none</...
Hiren's user avatar
  • 1,081
0 votes
1 answer
23 views

Magento2 update custom column value in sales order grid table

Magento2 I have added custom column in sales_order. I am updating its value via CRON but how can I use same value in sales_order_grid Below code is use to update sales_order $order = $this->...
Arjun's user avatar
  • 3,526
0 votes
0 answers
40 views

How I can add a `Create New Button` to my Grid in magento2 where redirects to another page?

I am learning magento extention creation, and I try to add a "Create New" record in my admin grid. So far I made this grid: namespace MageGuide\FirstModule\Block\Adminhtml; use MageGuide\...
Dimitrios Desyllas's user avatar
0 votes
2 answers
52 views

Magento 2 Add Store View Switcher Filter in UI Component Admin Grid

I have created one grid that needs to apply the store view Switcher Filter it was displayed but when I click on apply filter it throws the below error. Integrity constraint violation: 1052 Column '...
Keval Chauhan's user avatar
0 votes
0 answers
34 views

How to create a ui_component form which should be come as slide while click on admin grid edit action

How to create a ui_component form which should be come as slider when we click on edit action then that form which I have created should be come as slide and save and back button also should be ...
Mark's user avatar
  • 43
3 votes
0 answers
41 views

Magento2 how to display video as a thumbnail image in admin grid

I want to display video as a thumbnail in the custom admin grid. you can get the reference from the below screenshot. https://i.imgur.com/UTBHZvM.png
Ekta's user avatar
  • 111
0 votes
0 answers
16 views

MassAction if I select all items I get NULL in the controller

I have this grid: <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=&...
elunicotomas's user avatar
0 votes
1 answer
40 views

Magento 2 : Make custom grid table appear only data that have been filtered

I have a custom module created to show list of backorder product, the list appear like this as you can see on the grid table above under the column payment status there is 2 type of status which is ...
Mohd Farhan Bin Ramli's user avatar
0 votes
1 answer
159 views

Magento 2 ui component multi select selected option not working on edit action

this is add new form this is working. <field name="available_time"> <argument name="data" xsi:type="array"> <item name="options" xsi:...
Rubel Parvaz's user avatar
0 votes
2 answers
65 views

Rename export csv file

Is there a way to rename the default export.csv filename to another filename? I'm using the magento 2 export in my listing.xml
jsnewbie21's user avatar
1 vote
1 answer
44 views

Admin grid form submit button not working

When I open my admin grid form and click the Save button, nothing happens, the button just displays as clicked (no network activity, no errors in console or logs, doesnt reach Index/Save.php). When I ...
Kristaps Briks-Dravnieks's user avatar
0 votes
2 answers
103 views

Magento 2 Add multiselect to grid created using block

I have crated Admin Grid in Magento 2 Using the Block. I have added the select field in it and it's working fine. Now I want to add filter for the column in which select multiple options and filter ...
m2dev's user avatar
  • 63
0 votes
2 answers
776 views

DOMDocument::loadXML(): Argument #1 ($source) must not be empty in DomMerger.php

Keep getting this error in exception, no solutions to find on the internet: DOMDocument::loadXML(): Argument #1 ($source) must not be empty in /vendor/magento/framework/View/Element/UiComponent/Config/...
Harish kuril's user avatar
0 votes
1 answer
67 views

How to open slider popup from grid widget form using action column

I have loaded the widget block form grid in the edit product section. I am trying to open the model popup in the adminhtml widget grid form. I have added the action column like below $this->...
user73267's user avatar
  • 173
0 votes
1 answer
34 views

How to make column resizable

I want to make my columns in admin resizable. This is not working. <resizeEnabled>true</resizeEnabled> <resizeDefaultWidth>150</resizeDefaultWidth> <column name="title&...
jsnewbie21's user avatar
0 votes
0 answers
148 views

Magento 2.4.6 building custom admin grid filter issue

I built my own custom admin grid. It renders the data correctly, however when I tried to filter on an input, I am receiving the following error from the ajax request: Status code 500 Error: TypeError:...
Attila Naghi's user avatar
  • 3,863
0 votes
2 answers
76 views

Hide/Remove selectionsColumn

I want to remove or hide this without affecting the export csv. How? <selectionsColumn name="ids"> <settings> <indexField>k_id</indexField> <...
jsnewbie21's user avatar
0 votes
1 answer
115 views

Magento 2: How to display region label instead of option value in custom ui component grid?

I have created an ui component and form. In the form, I have added the country and region fields and in the grid, I need to display the region label instead of the option value. How to achieve this? ...
MagentoDev's user avatar
1 vote
0 answers
23 views

How to save empty decimal admin form field not as 0.00 but as null in database?

I have an Admin Grid with one column named min_weight. This column has the datatype decimal (5,2) in the database. The default value for the column is NULL. If I try to save an entry with the Admin ...
Luisa's user avatar
  • 11
0 votes
0 answers
80 views

How to add date picker (calendar) in filter in Admin grid ui component

I have a custom grid in Admin using UI component. I want to add calendar as input selector in filter like date of birth/customer since( NOT from/to) Just a single input box with date selector I tried ...
Pawan's user avatar
  • 5,761
2 votes
1 answer
88 views

Mgento Admin Grid Multi select "," seperated value filter not working in custom grid Magento 2?

I create custom grid that include Website field and customer group fields are multiselect. At Filter apply also need to set as multiselect that not working for me. here I share my listing xml file ...
Joy Poly's user avatar
  • 501
0 votes
0 answers
21 views

Magento 2 multilayer grid in admin page

I need to add crud grid in edit page existing grid edit page. How can I do that? Modules or working code no matter. Image :2
NoOn's user avatar
  • 65
0 votes
1 answer
172 views

Deprecated Functionality: explode(): Passing null to parameter #2 ($string) of type string is deprecated

"<?php namespace Rkd\test\Block\Adminhtml\Alltest\Alltest; use Rkd\Reports\Helper\Data as ReportsHelper; class GridExports extends \Magento\Backend\Block\Widget\Grid\Extended { protected $...
Alok Tiwari's user avatar
0 votes
1 answer
136 views

filterUrlParams property not generating ajax url param on admin grid

i m struggling with an issue on Magento 2.4.5 creating a custom module on admin. I have created a 2 column ui with a form and listing, which renders a grid on the admin, however, no matter what i have ...
nikolas's user avatar
  • 101
0 votes
1 answer
112 views

Magento 2 hide edit/delete/view link on grid based on condition

I want to hide link for edit/delete/view on grid based on certain condition. How can I do that with ui component
Smita Kagwade's user avatar
0 votes
0 answers
184 views

how add requisition list on grid.phtml

I'm on magento 2.4.5 I want to put requisition list dropdown on homepage, like he appears when we search for any product, with a clickable icon My file list. phtml vendor/magento/module-catalog/view/...
Arthur Villa's user avatar
2 votes
1 answer
363 views

Magento 2 Grid not showing up

I have been trying to create a grid list for my custom module. All code part is done and the grid not displayed. Reviewed the code many times but I couldn't find the issue. Here is my code: Test\...
user110617's user avatar
1 vote
0 answers
163 views

Admin Grids not loading after upgrade to 2.4.5

After upgrading from 2.3.4 to 2.4.5 (via composer) all areas in the admin that include the use of admin grids do not load (e.g. products, orders, blocks etc). No data is loaded and the spinner icon is ...
jaybong's user avatar
  • 211
0 votes
1 answer
36 views

Magento 2 admin add new review redirecting to review grid

We are using Magento 2.4.5-p1 version. When we click on New Review button - Then it is redirecting to the review grid - This issue is also present on GitHub but no proper answer and this commit - ...
sumeet bajaj's user avatar
  • 1,225
0 votes
0 answers
114 views

How to get active or all filters in renderer class in Magento 2?

I want to get active filters or all filters in my renderer. How can I get filter values in my renderer class because I want to add conditions based on these applied filters? Renderer Renderer Class
Yasir Minhaj's user avatar
0 votes
1 answer
33 views

sales by payment type reports display in dashboard in magento 2

Block-> <?php namespace \Block; use Magento\Payment\Api\PaymentMethodListInterface; class AllPayment extends \Magento\Framework\View\Element\Template { protected $_paymentConfig; protected ...
Rubel Parvaz's user avatar
0 votes
0 answers
31 views

Adding some Customer attributes on magento 1.9 , but saving action doesn't work

the save customer & save and continue edit don't perform any action ?
abderrahim rida's user avatar
0 votes
0 answers
34 views

How to add pagination to attribute option grid?

We have a product attribute with over 3k option values, making it virtually unmanagable in the admin - lots of memory errors. Is there a way to add pagination to the attribute option grid so we can ...
theJoey's user avatar
0 votes
0 answers
25 views

Magento 2 grid uiComponent filters not work for custom string values

My column definition looks like this: <column name="child_customer_id"> <argument name="data" xsi:type="array"> <item name="config" xsi:...
Vishal Rathod's user avatar
0 votes
1 answer
329 views

Magento 2.4 admin grid add select filter with search

Good afternoon community, does anyone by chance know how I can add a select type filter to an adminhtml table grid and that additional internally include a search to filter options? As you can see in ...
GStiven's user avatar
  • 21
0 votes
0 answers
141 views

How to replace default filter of a specific field by custom filter in admin grid of custom table . Still keep pagingnation, other filter

In Admin grid filter type select.By default Magento, it will add this string to SQL query Where main_table.my_field = 'my-value'. Now I want it will be Where FIND_IN_SET('my-value',main_table.my_field)...
Phạm Hòa's user avatar
1 vote
3 answers
99 views

Help please , Well configured, but i can't get Model in Magento 1.9.4.5

app/code/local/Info/news/Bock/Adminhtml/news/Grid.php <?php class Info_News_Block_Adminhtml_News_Grid extends Mage_Adminhtml_Block_Widget_Grid{ public function __construct(){ ...
abderrahim rida's user avatar
0 votes
0 answers
49 views

Grid is showing the same record by it's id times in magento custom module

I am new to Magento and I just created my first module. But the issue is I can see the record from the MySQL database in the grid but let support if the latest record added has an id(primary key) like ...
HamzaKhalid273's user avatar
0 votes
0 answers
18 views

How to make query sort by number not by alphabet in admin grid filter?

In my custom_table have custom_field (type varchar)- but I only insert the number on that field. My problem is when I filter custom_field by range in the admin grid, the query is select `main_table`.* ...
Phạm Hòa's user avatar
1 vote
1 answer
53 views

Inject scoped config into DataProvider in Magento 2.4

I am trying to make a tabular/grid view in the Admin area for some data that comes from an external API. For that I implemented a data provider. In here I need to create an instance for the external ...
Comforse's user avatar
  • 111
1 vote
1 answer
147 views

Custom renderer showing only the last item from an array into grid magento2

I am trying to show all of the postal codes in my grid from the array in column but it showing only the last one. Array ( [0] => Array ( [from_postalcode] => 123 ...
BodrinSanfu's user avatar
0 votes
2 answers
250 views

In my data-provider addFieldtoFilter() is not working with url param

I have made a grid in admin that is supposed to return a filtered collection based on a URL parameter lesson_id. DataProvider: <?php namespace VendorName\ModuleName\Ui\DataProvider\Participants; ...
luitzen feenstra's user avatar
1 vote
1 answer
326 views

Show and hide Grid Column

How to change the grid column value basend on the certain value in another column of that record (row). I have two column step1_formula and step2_formula if user selected step2 formula from UI form i ...
Syed Hassan Zamir's user avatar
0 votes
0 answers
164 views

Third party extension js file does not added showing error

I install magento2 sales grid custom module but not support the js file in localhost. Uncaught Error: Script error for: magentoGrid http://requirejs.org/docs/errors.html#scripterror at makeError (...
Mahalakshmi's user avatar
0 votes
1 answer
129 views

How can I pass row id in url when editing a row in admin page?

I want to prefill my form inputs when trying to edit a row, but the ID won't pass, unless I type the exact number in the URL. Is there any way of passing the ID? Code below, thanks. <?xml version=&...
Razvan's user avatar
  • 11
0 votes
2 answers
552 views

how to add custom filter in UI component with minimum effort?

I have grid in which i try to filter a field name "seller_id" and this grid is a coming from a custom dataprovider with join of two tables. Now the issue is these both table have same column ...
Asad Ullah's user avatar
  • 1,451
0 votes
1 answer
177 views

Magento 2.4 add column to admin grid

When I add new grid column I got an error says: Something went wrong with processing the default view and we have restored the filter to its original state. Here is my ui component form code: <...
Fatima Zahra Ben hammou's user avatar
0 votes
1 answer
160 views

How to show web site column in custom module custom grid in admin magento 2

https://prnt.sc/AVRLsd7GLrKz Vendorname\Modulename\Block\Adminhtml\Tool\Edit\Tab\View; $this->addColumn( 'website_id', [ 'header' => __('Web Site'), '...
Ravindrasinh Zala's user avatar
2 votes
1 answer
184 views

Magento grid not fully displayed

I have Installed Magento 2.4.5 but grids on the admin side are all right aligned ( not displaying on full screen )
Syed Hassan Zamir's user avatar
0 votes
1 answer
30 views

how do i make an admin grid based on sales_order table (some columns but not all) using best practice?

Let's say I need an admin grid where not all columns of the sales_order table will be, but only some of them. For example: customer_id customer_name nickname How best to solve such a problem?
esca7a's user avatar
  • 1

1
2 3 4 5
28