3

In your grid class add this in the constructor: $this->setPagerVisibility(false);


3

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:module:Magento_Ui:etc/ui_configuration.xsd"> <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> ...


3

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"> <item name="config" xsi:type="array"> <item name="options_custom" xsi:type="array"> <item name="cvs" xsi:type="...


2

First create your UI Component <listingToolbar name="listing_top"> <exportButton class="Magento\Ui\Component\ExportButton" component="Magento_Ui/js/grid/export" displayArea="dataGridActions"> <settings> <options> <option name="cvs" xsi:type="array"> ...


2

You can add _initSelect() method in your Collection.php file in your custom module protected function _initSelect() { parent::_initSelect(); $this->getSelect()->joinLeft( ['cp' => $this->getTable('catalog_product')], 'main_table.product_id = cp.entity_id', ['*'] ); return $this; } You can check this module as a reference ...


1

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 reference check this link --- UI component - display the time to 'Y-m-d H:i:s' format(ISO time format) Hope this help you Thanks ...


1

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/frontend-dev-guide/layouts/xml-instructions.html I hope it will help you!


1

Call below code instead Remove: <?php $newsCollection = $this->getNewsCollection(); ?> Replace : <?php $newsCollection = $this->_getNewsCollection(); ?>


1

Add a class to exportButton component: <exportButton name="export_button" class="Vendor\Module\Ui\Component\ExportButton"> And create a class which extends Magento component: namespace Vendor\Module\Ui\Component; class ExportButton extends \Magento\Ui\Component\ExportButton { public function prepare() { $config = $...


1

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 file under app/code/Vendor/Module/etc/adminhtml with below content. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...


1

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"> <item name="template" xsi:type="string">ui/grid/toolbar</item> </item> </argument> <container name="columns_controls"> ...


1

you can create mass action to approve or disapprove status in admin grid


1

You can add your status field in InstallSchema.php file ->addColumn( 'status', \Magento\Framework\DB\Ddl\Table::TYPE_BOOLEAN, '', ['nullable' => true], '0 = Approved, 1= Disapproved' )` You can add status column in listing.xml <column name="status"> <...


1

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="colors_picker" class="Magento\Ui\Component\Form\Element\ColorPicker" component="Magento_Ui/js/form/element/color-picker" template="ui/form/element/color-picker" ...


1

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.


1

this is good way to add class in your custom column $this->addColumn('mfg', array( 'header' => Mage::helper('manufacturer')->__('Manufacturer'), 'index' => 'mfg_id', 'filter_index' => 'SFOIA.mfg_id', 'type' => 'options', 'options' => $this->getManufacturersWithExtraOption(), ...


1

For magento 2, try below in construct method. protected function _construct() { parent::_construct(); $this->setId('postGrid'); $this->setDefaultSort('customer_prescription_id'); $this->setDefaultDir('DESC'); $this->setSaveParametersInSession(true); $this->setUseAjax(true); $this->setVarNameFilter('post_filter');...


Only top voted, non community-wiki answers of a minimum length are eligible