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
0 answers
42 views

Magento 2 How To Create File Upload Controller in Ui Component Form

I have created one custom extension that creates one grid using UI component so now, on this create one control file upload type, and using this control I want to upload one PDF file and save it on ...
Keval Chauhan's user avatar
0 votes
0 answers
16 views

Displaying Date with Timezone Abbreviation in grid But should not affect filter field date format

I'm currently working on a Magento 2.4.5 project and I'm facing an issue with the date column in the Admin Grid. I have a column named "created_at," and I want to display dates in a custom ...
M2 Dev's user avatar
  • 508
0 votes
2 answers
52 views

i am fetching the data from database and display in magento admin grid, and the grid display blank

I have tried all of my thinking, I don't understand why the grid displays a blank Controller namespace StateDrives\RequestQuote\Controller\Adminhtml\Bulkquote; use Magento\Backend\App\Action; use ...
abbas fakhruddin's user avatar
0 votes
0 answers
10 views

Filter Product Grid Column Based on SQL calculation

I have a custom column within the Product Grid that states whether a product is In Stock or Out of Stock, based on whether or not the Salably Quantity is greater than zero. While I have managed to get ...
A. Andersen's user avatar
0 votes
1 answer
51 views

How to add muli select column in inline edit of customer grid for a customer attribue in magento 2

I have been trying to add the multi-select option in the inline grid edit of the customer grid for a customer attribute. However, I could find samples for adding multi-select options for inline ...
mage's user avatar
  • 15
0 votes
0 answers
9 views

Group by on collection on Magento 1.7

In Magento 1.7, I added a column in the shipment grid displaying the total of the associated order for each shipment. To achieve this, in the Mage_Adminhtml_Block_Sales_Shipment_Grid file, I added the ...
Infocurci's user avatar
2 votes
0 answers
20 views

Magento2: Product Admin Grid

I want to render product grid from the default store view is there any way that we can render product grid from default store view rather than all store view any help will be appreciate
Ronak's user avatar
  • 456
2 votes
0 answers
45 views

How can I set required field filter Date field in magento2 grid

How can I set required field in filter Date field in magento2 grid Interval : This is required field. Admin can NOT click “Apply Filters” without selecting values in at least 1 among 2 fields.
Khải Trần Đình's user avatar
0 votes
1 answer
30 views

Magento246 ProductAttachment Ui_Component grid not working properly

I am trying to show all my attachments in my grid but the grid is showing only the last one that I uploaded, but in the database and on the frontend it shows all and when i do filter it show all ...
abbas fakhruddin's user avatar
0 votes
3 answers
95 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,091
1 vote
1 answer
113 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,566
0 votes
0 answers
49 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
175 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
39 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
  • 53
2 votes
0 answers
67 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
  • 101
0 votes
0 answers
27 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
44 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
353 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
129 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
69 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
336 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
  • 73
0 votes
2 answers
2k 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
104 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
  • 183
0 votes
1 answer
41 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
1 answer
346 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,963
0 votes
2 answers
152 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
255 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
33 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
156 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,846
2 votes
1 answer
130 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 ...
Jay Parmar's user avatar
0 votes
0 answers
23 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
311 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
200 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
123 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
2 votes
1 answer
572 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
177 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
37 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,286
0 votes
1 answer
44 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
1 answer
418 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
  • 41
1 vote
3 answers
103 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
1 vote
1 answer
104 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
2 votes
1 answer
201 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
1 vote
2 answers
351 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
388 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
1 vote
1 answer
146 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
  • 21
0 votes
2 answers
773 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,461
1 vote
1 answer
221 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
179 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
3 votes
1 answer
196 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
31 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
  • 21

1
2 3 4 5
28