Add product grid in custom module using ui componentMagento 2 : How to add a product grid in custom module using ui component?I created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Difference when to declare an object via MagentoFrameworkObjectManagerInterface and inject via the constructorMagento 2.1: Invoke urlBuilder->getUrl() in a controller in a custom moduleMagento 2: How to override newsletter Subscriber modelPrice not getting updated for second product…Magento 2 : Custom module plugin is not workingForm is not displayed on panel admin Magento 2Magento 2: I Want to add multiple product using checkboxMagento 2.3 Can't view module's front end page output?magento 2.2 trying to save multi select value in database

Jesus' words on the Jews

Are there any established rules for splitting books into parts, chapters, sections etc?

What is the best way for a skeleton to impersonate human without using magic?

If current results hold, Man City would win PL title

Wireless headphones interfere with Wi-Fi signal on laptop

Program which behaves differently in/out of a debugger

How to distinguish PICTURE OF ME and PICTURE OF MINE in Chinese?

In books, how many dragons are there in present time?

Why was Endgame Thanos so different than Infinity War Thanos?

Can I say that master can only initiate communication in SPI vs. in I2C slave can also initiate the communication?

Is there anything special about -1 (0xFFFFFFFF) regarding ADC?

When a land becomes a creature, is it untapped?

Why do I get two different answers when solving for arclength?

On what legal basis did the UK remove the 'European Union' from its passport?

How can dragons propel their breath attacks to a long distance

Was this character’s old age look CGI or make-up?

What was the significance of Varys' little girl?

Is Germany still exporting arms to countries involved in Yemen?

Where to find every-day healthy food near Heathrow Airport?

Why does lemon juice reduce the "fish" odor of sea food — specifically fish?

Determine the slope and write the Cartesian equation of the line.

Can I say: "When was your train leaving?" if the train leaves in the future?

Labeling matrices/rectangles and drawing Sigma inside rectangle

Do Life Drain attacks from wights stack?



Add product grid in custom module using ui component


Magento 2 : How to add a product grid in custom module using ui component?I created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Difference when to declare an object via MagentoFrameworkObjectManagerInterface and inject via the constructorMagento 2.1: Invoke urlBuilder->getUrl() in a controller in a custom moduleMagento 2: How to override newsletter Subscriber modelPrice not getting updated for second product…Magento 2 : Custom module plugin is not workingForm is not displayed on panel admin Magento 2Magento 2: I Want to add multiple product using checkboxMagento 2.3 Can't view module's front end page output?magento 2.2 trying to save multi select value in database






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I have followed this solution Magento 2 : How to add a product grid in custom module using ui component? but i am getting this



enter image description here



What i am doing wrong can any one help me on this.
Edit Controller



class Edit extends Action
ResponseInterface
* @throws MagentoFrameworkExceptionNotFoundException
*/
public function execute()

try
$resultRaw = $this->resultRawFactory->create();
return $resultRaw->setContents(
$this->layoutFactory->create()->createBlock(
'AllureCelebritiesBlockAdminhtmlProductsEditTabProduct',
'category.product.grid'
)->toHtml()
);


catch (Exception $exception)
$this->messageManager->addErrorMessage($exception->getMessage());

$this->_redirect("*/celebrities/index");
return;


protected function _initItem($getRootInstead = false)

$id = (int)$this->getRequest()->getParam('id', false);
$myModel = $this->_objectManager->create('AllureCelebritiesModelCelebrity');

if ($id)
$myModel->load($id);


$this->_objectManager->get('MagentoFrameworkRegistry')->register('item', $myModel);
$this->_objectManager->get('MagentoFrameworkRegistry')->register('my_item', $myModel);
$this->_objectManager->get('MagentoCmsModelWysiwygConfig');
return $myModel;













share|improve this question






















  • I think the css file of page is not coming. Can you check the console and also try running content deploy, cache and indexing commands

    – surbhi agr
    May 9 at 7:07

















4















I have followed this solution Magento 2 : How to add a product grid in custom module using ui component? but i am getting this



enter image description here



What i am doing wrong can any one help me on this.
Edit Controller



class Edit extends Action
ResponseInterface
* @throws MagentoFrameworkExceptionNotFoundException
*/
public function execute()

try
$resultRaw = $this->resultRawFactory->create();
return $resultRaw->setContents(
$this->layoutFactory->create()->createBlock(
'AllureCelebritiesBlockAdminhtmlProductsEditTabProduct',
'category.product.grid'
)->toHtml()
);


catch (Exception $exception)
$this->messageManager->addErrorMessage($exception->getMessage());

$this->_redirect("*/celebrities/index");
return;


protected function _initItem($getRootInstead = false)

$id = (int)$this->getRequest()->getParam('id', false);
$myModel = $this->_objectManager->create('AllureCelebritiesModelCelebrity');

if ($id)
$myModel->load($id);


$this->_objectManager->get('MagentoFrameworkRegistry')->register('item', $myModel);
$this->_objectManager->get('MagentoFrameworkRegistry')->register('my_item', $myModel);
$this->_objectManager->get('MagentoCmsModelWysiwygConfig');
return $myModel;













share|improve this question






















  • I think the css file of page is not coming. Can you check the console and also try running content deploy, cache and indexing commands

    – surbhi agr
    May 9 at 7:07













4












4








4








I have followed this solution Magento 2 : How to add a product grid in custom module using ui component? but i am getting this



enter image description here



What i am doing wrong can any one help me on this.
Edit Controller



class Edit extends Action
ResponseInterface
* @throws MagentoFrameworkExceptionNotFoundException
*/
public function execute()

try
$resultRaw = $this->resultRawFactory->create();
return $resultRaw->setContents(
$this->layoutFactory->create()->createBlock(
'AllureCelebritiesBlockAdminhtmlProductsEditTabProduct',
'category.product.grid'
)->toHtml()
);


catch (Exception $exception)
$this->messageManager->addErrorMessage($exception->getMessage());

$this->_redirect("*/celebrities/index");
return;


protected function _initItem($getRootInstead = false)

$id = (int)$this->getRequest()->getParam('id', false);
$myModel = $this->_objectManager->create('AllureCelebritiesModelCelebrity');

if ($id)
$myModel->load($id);


$this->_objectManager->get('MagentoFrameworkRegistry')->register('item', $myModel);
$this->_objectManager->get('MagentoFrameworkRegistry')->register('my_item', $myModel);
$this->_objectManager->get('MagentoCmsModelWysiwygConfig');
return $myModel;













share|improve this question














I have followed this solution Magento 2 : How to add a product grid in custom module using ui component? but i am getting this



enter image description here



What i am doing wrong can any one help me on this.
Edit Controller



class Edit extends Action
ResponseInterface
* @throws MagentoFrameworkExceptionNotFoundException
*/
public function execute()

try
$resultRaw = $this->resultRawFactory->create();
return $resultRaw->setContents(
$this->layoutFactory->create()->createBlock(
'AllureCelebritiesBlockAdminhtmlProductsEditTabProduct',
'category.product.grid'
)->toHtml()
);


catch (Exception $exception)
$this->messageManager->addErrorMessage($exception->getMessage());

$this->_redirect("*/celebrities/index");
return;


protected function _initItem($getRootInstead = false)

$id = (int)$this->getRequest()->getParam('id', false);
$myModel = $this->_objectManager->create('AllureCelebritiesModelCelebrity');

if ($id)
$myModel->load($id);


$this->_objectManager->get('MagentoFrameworkRegistry')->register('item', $myModel);
$this->_objectManager->get('MagentoFrameworkRegistry')->register('my_item', $myModel);
$this->_objectManager->get('MagentoCmsModelWysiwygConfig');
return $myModel;










magento2 magento-2.1 uicomponent list-view






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 9 at 5:11









Avesh NaikAvesh Naik

438114




438114












  • I think the css file of page is not coming. Can you check the console and also try running content deploy, cache and indexing commands

    – surbhi agr
    May 9 at 7:07

















  • I think the css file of page is not coming. Can you check the console and also try running content deploy, cache and indexing commands

    – surbhi agr
    May 9 at 7:07
















I think the css file of page is not coming. Can you check the console and also try running content deploy, cache and indexing commands

– surbhi agr
May 9 at 7:07





I think the css file of page is not coming. Can you check the console and also try running content deploy, cache and indexing commands

– surbhi agr
May 9 at 7:07










1 Answer
1






active

oldest

votes


















0














Try this, it seems to be working
http://www.webspeaks.in/2016/05/magento-2-add-products-grid-to-custom-admin-module.html






share|improve this answer























  • That is an alternate solution. I want it using UI component.

    – Avesh Naik
    May 9 at 7:24











  • amasty.com/blog/how-to-use-ui-components-in-magento-2

    – lama377
    May 9 at 12:37











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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f273927%2fadd-product-grid-in-custom-module-using-ui-component%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









0














Try this, it seems to be working
http://www.webspeaks.in/2016/05/magento-2-add-products-grid-to-custom-admin-module.html






share|improve this answer























  • That is an alternate solution. I want it using UI component.

    – Avesh Naik
    May 9 at 7:24











  • amasty.com/blog/how-to-use-ui-components-in-magento-2

    – lama377
    May 9 at 12:37















0














Try this, it seems to be working
http://www.webspeaks.in/2016/05/magento-2-add-products-grid-to-custom-admin-module.html






share|improve this answer























  • That is an alternate solution. I want it using UI component.

    – Avesh Naik
    May 9 at 7:24











  • amasty.com/blog/how-to-use-ui-components-in-magento-2

    – lama377
    May 9 at 12:37













0












0








0







Try this, it seems to be working
http://www.webspeaks.in/2016/05/magento-2-add-products-grid-to-custom-admin-module.html






share|improve this answer













Try this, it seems to be working
http://www.webspeaks.in/2016/05/magento-2-add-products-grid-to-custom-admin-module.html







share|improve this answer












share|improve this answer



share|improve this answer










answered May 9 at 7:10









lama377lama377

161




161












  • That is an alternate solution. I want it using UI component.

    – Avesh Naik
    May 9 at 7:24











  • amasty.com/blog/how-to-use-ui-components-in-magento-2

    – lama377
    May 9 at 12:37

















  • That is an alternate solution. I want it using UI component.

    – Avesh Naik
    May 9 at 7:24











  • amasty.com/blog/how-to-use-ui-components-in-magento-2

    – lama377
    May 9 at 12:37
















That is an alternate solution. I want it using UI component.

– Avesh Naik
May 9 at 7:24





That is an alternate solution. I want it using UI component.

– Avesh Naik
May 9 at 7:24













amasty.com/blog/how-to-use-ui-components-in-magento-2

– lama377
May 9 at 12:37





amasty.com/blog/how-to-use-ui-components-in-magento-2

– lama377
May 9 at 12:37

















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f273927%2fadd-product-grid-in-custom-module-using-ui-component%23new-answer', 'question_page');

);

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







Popular posts from this blog

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?