Issue with edit Option in Action column admin gridHow can i rewrite TierPrice Block in Magento2Redeclare UI form component in Magento 2Magento 2.1 Create a filter in the product grid by new attributeMagento migration product error: UiComponentFactory->argumentsResolver('created_by', NULL)admin grid not workingCustomer export not working after creating custom attributes in magento 2.2.5Cannot export list of customer from the grid magento 2Image Uploader throws Uncaught type Error in Ui ComponentMagento2 : How to add button in admin custom module page?
Create Circle with Inner Radius
Are there any English words pronounced with sounds/syllables that aren't part of the spelling?
Do I care if the housing market has gone up or down, if I'm moving from one house to another?
Can the caster of Time Stop still use their bonus action or reaction?
Does Mathematica 12 support GT 730 CUDA?
Why is DC so, so, so Democratic?
Why is a PhD thesis typically 150 pages?
Host telling me to cancel my booking in exchange for a discount?
What does a Nintendo Game Boy do when turned on without a game cartridge inserted?
Acoustic guitar chords' positions vs those of a Bass guitar
Would using carbon dioxide as fuel work to reduce the greenhouse effect?
Is it better to deliver many low-value stories or few high-value stories?
What is a "staved" town, like in "Staverton"?
If hash functions append the length, why does length extension attack work?
Book in which the "mountain" in the distance was a hole in the flat world
How can I disable a reserved profile?
Adding gears to my grandson's 12" bike
How did pilots avoid thunderstorms and related weather before “reliable” airborne weather radar was introduced on airliners?
Source for "everyone has a specific area of Torah that they're naturally drawn to"
Pass USB 3.0 connection through D-SUB connector
Why can't a country print its own money to spend it only abroad?
Capture SQL Server queries without third-party tooling and without using deprecated features?
Reissue US, UK, Canada visas in stolen passports
Please let me know why 2/16 has a remainder of 2. Thanks
Issue with edit Option in Action column admin grid
How can i rewrite TierPrice Block in Magento2Redeclare UI form component in Magento 2Magento 2.1 Create a filter in the product grid by new attributeMagento migration product error: UiComponentFactory->argumentsResolver('created_by', NULL)admin grid not workingCustomer export not working after creating custom attributes in magento 2.2.5Cannot export list of customer from the grid magento 2Image Uploader throws Uncaught type Error in Ui ComponentMagento2 : How to add button in admin custom module page?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
While Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue.
This is my Ui_Component file (action section)
<actionsColumn name="action"
class="NaiwritaBoralUiComponentListingColumnAction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">true</item>
<item name="resizeDefaultWidth" xsi:type="string">107</item>
<item name="indexField" xsi:type="string">id</item>
</item>
</argument>
</actionsColumn>
This is the action.php file where the edit option is implemented
use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoUiComponentListingColumnsColumn;
use MagentoFrameworkUrlInterface;
class Action extends Column
const ROW_EDIT_URL = 'sample/index/addrow';
protected $_urlBuilder;
private $_editUrl;
public function __construct(
ContextInterface $context,
UiComponentFactory $uiComponentFactory,
UrlInterface $urlBuilder,
array $components = [],
array $data = [],
$editUrl = self::ROW_EDIT_URL)
$this->_urlBuilder = $urlBuilder;
$this->_editUrl = $editUrl;
parent::__construct($context, $uiComponentFactory, $components, $data);
public function prepareDataSource(array $dataSource)
if (isset($dataSource['data']['items']))
foreach ($dataSource['data']['items'] as &$item)
$name = $this->getData('name');
if (isset($item['id']))
$item[$name]['edit'] = [
'href' => $this->_urlBuilder->getUrl($this->_editUrl, ['id' => $item['id']]),
'label' => __('Edit'),
];
return $dataSource;
magento2 uicomponent action
|
show 8 more comments
While Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue.
This is my Ui_Component file (action section)
<actionsColumn name="action"
class="NaiwritaBoralUiComponentListingColumnAction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">true</item>
<item name="resizeDefaultWidth" xsi:type="string">107</item>
<item name="indexField" xsi:type="string">id</item>
</item>
</argument>
</actionsColumn>
This is the action.php file where the edit option is implemented
use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoUiComponentListingColumnsColumn;
use MagentoFrameworkUrlInterface;
class Action extends Column
const ROW_EDIT_URL = 'sample/index/addrow';
protected $_urlBuilder;
private $_editUrl;
public function __construct(
ContextInterface $context,
UiComponentFactory $uiComponentFactory,
UrlInterface $urlBuilder,
array $components = [],
array $data = [],
$editUrl = self::ROW_EDIT_URL)
$this->_urlBuilder = $urlBuilder;
$this->_editUrl = $editUrl;
parent::__construct($context, $uiComponentFactory, $components, $data);
public function prepareDataSource(array $dataSource)
if (isset($dataSource['data']['items']))
foreach ($dataSource['data']['items'] as &$item)
$name = $this->getData('name');
if (isset($item['id']))
$item[$name]['edit'] = [
'href' => $this->_urlBuilder->getUrl($this->_editUrl, ['id' => $item['id']]),
'label' => __('Edit'),
];
return $dataSource;
magento2 uicomponent action
can you show your inuse
classes from yourAction.php
file?
– Mohit Rane
Jul 13 at 10:18
I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.
– Naiwrita09
Jul 13 at 10:25
Can you please share a screenshot?
– Mohit Rane
Jul 13 at 10:27
also show your wholelisting.xml
file to get better idea.
– Mohit Rane
Jul 13 at 10:33
ok 1 second. images added
– Naiwrita09
Jul 13 at 10:35
|
show 8 more comments
While Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue.
This is my Ui_Component file (action section)
<actionsColumn name="action"
class="NaiwritaBoralUiComponentListingColumnAction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">true</item>
<item name="resizeDefaultWidth" xsi:type="string">107</item>
<item name="indexField" xsi:type="string">id</item>
</item>
</argument>
</actionsColumn>
This is the action.php file where the edit option is implemented
use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoUiComponentListingColumnsColumn;
use MagentoFrameworkUrlInterface;
class Action extends Column
const ROW_EDIT_URL = 'sample/index/addrow';
protected $_urlBuilder;
private $_editUrl;
public function __construct(
ContextInterface $context,
UiComponentFactory $uiComponentFactory,
UrlInterface $urlBuilder,
array $components = [],
array $data = [],
$editUrl = self::ROW_EDIT_URL)
$this->_urlBuilder = $urlBuilder;
$this->_editUrl = $editUrl;
parent::__construct($context, $uiComponentFactory, $components, $data);
public function prepareDataSource(array $dataSource)
if (isset($dataSource['data']['items']))
foreach ($dataSource['data']['items'] as &$item)
$name = $this->getData('name');
if (isset($item['id']))
$item[$name]['edit'] = [
'href' => $this->_urlBuilder->getUrl($this->_editUrl, ['id' => $item['id']]),
'label' => __('Edit'),
];
return $dataSource;
magento2 uicomponent action
While Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue.
This is my Ui_Component file (action section)
<actionsColumn name="action"
class="NaiwritaBoralUiComponentListingColumnAction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">true</item>
<item name="resizeDefaultWidth" xsi:type="string">107</item>
<item name="indexField" xsi:type="string">id</item>
</item>
</argument>
</actionsColumn>
This is the action.php file where the edit option is implemented
use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoUiComponentListingColumnsColumn;
use MagentoFrameworkUrlInterface;
class Action extends Column
const ROW_EDIT_URL = 'sample/index/addrow';
protected $_urlBuilder;
private $_editUrl;
public function __construct(
ContextInterface $context,
UiComponentFactory $uiComponentFactory,
UrlInterface $urlBuilder,
array $components = [],
array $data = [],
$editUrl = self::ROW_EDIT_URL)
$this->_urlBuilder = $urlBuilder;
$this->_editUrl = $editUrl;
parent::__construct($context, $uiComponentFactory, $components, $data);
public function prepareDataSource(array $dataSource)
if (isset($dataSource['data']['items']))
foreach ($dataSource['data']['items'] as &$item)
$name = $this->getData('name');
if (isset($item['id']))
$item[$name]['edit'] = [
'href' => $this->_urlBuilder->getUrl($this->_editUrl, ['id' => $item['id']]),
'label' => __('Edit'),
];
return $dataSource;
magento2 uicomponent action
magento2 uicomponent action
edited Jul 13 at 10:34
Naiwrita09
asked Jul 13 at 9:00
Naiwrita09Naiwrita09
268 bronze badges
268 bronze badges
can you show your inuse
classes from yourAction.php
file?
– Mohit Rane
Jul 13 at 10:18
I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.
– Naiwrita09
Jul 13 at 10:25
Can you please share a screenshot?
– Mohit Rane
Jul 13 at 10:27
also show your wholelisting.xml
file to get better idea.
– Mohit Rane
Jul 13 at 10:33
ok 1 second. images added
– Naiwrita09
Jul 13 at 10:35
|
show 8 more comments
can you show your inuse
classes from yourAction.php
file?
– Mohit Rane
Jul 13 at 10:18
I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.
– Naiwrita09
Jul 13 at 10:25
Can you please share a screenshot?
– Mohit Rane
Jul 13 at 10:27
also show your wholelisting.xml
file to get better idea.
– Mohit Rane
Jul 13 at 10:33
ok 1 second. images added
– Naiwrita09
Jul 13 at 10:35
can you show your in
use
classes from your Action.php
file?– Mohit Rane
Jul 13 at 10:18
can you show your in
use
classes from your Action.php
file?– Mohit Rane
Jul 13 at 10:18
I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.
– Naiwrita09
Jul 13 at 10:25
I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.
– Naiwrita09
Jul 13 at 10:25
Can you please share a screenshot?
– Mohit Rane
Jul 13 at 10:27
Can you please share a screenshot?
– Mohit Rane
Jul 13 at 10:27
also show your whole
listing.xml
file to get better idea.– Mohit Rane
Jul 13 at 10:33
also show your whole
listing.xml
file to get better idea.– Mohit Rane
Jul 13 at 10:33
ok 1 second. images added
– Naiwrita09
Jul 13 at 10:35
ok 1 second. images added
– Naiwrita09
Jul 13 at 10:35
|
show 8 more comments
1 Answer
1
active
oldest
votes
Please truncate ui_bookmark table from the database and run the following commands into the cmd.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush
this solution is work.
sure sir I will try
– Naiwrita09
Jul 13 at 11:15
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281971%2fissue-with-edit-option-in-action-column-admin-grid%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please truncate ui_bookmark table from the database and run the following commands into the cmd.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush
this solution is work.
sure sir I will try
– Naiwrita09
Jul 13 at 11:15
add a comment |
Please truncate ui_bookmark table from the database and run the following commands into the cmd.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush
this solution is work.
sure sir I will try
– Naiwrita09
Jul 13 at 11:15
add a comment |
Please truncate ui_bookmark table from the database and run the following commands into the cmd.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush
this solution is work.
Please truncate ui_bookmark table from the database and run the following commands into the cmd.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush
this solution is work.
answered Jul 13 at 11:14
Hardik MakwanaHardik Makwana
4131 silver badge13 bronze badges
4131 silver badge13 bronze badges
sure sir I will try
– Naiwrita09
Jul 13 at 11:15
add a comment |
sure sir I will try
– Naiwrita09
Jul 13 at 11:15
sure sir I will try
– Naiwrita09
Jul 13 at 11:15
sure sir I will try
– Naiwrita09
Jul 13 at 11:15
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f281971%2fissue-with-edit-option-in-action-column-admin-grid%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
can you show your in
use
classes from yourAction.php
file?– Mohit Rane
Jul 13 at 10:18
I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.
– Naiwrita09
Jul 13 at 10:25
Can you please share a screenshot?
– Mohit Rane
Jul 13 at 10:27
also show your whole
listing.xml
file to get better idea.– Mohit Rane
Jul 13 at 10:33
ok 1 second. images added
– Naiwrita09
Jul 13 at 10:35