I created a custom grid under custom tab in product view page.

The grid was showing the total product collection from my table.

I want display the grid only current product data.

I apply filter for grid collection in magento2.

If anyone knows please explain me..

  • can you please add the code? – Abhishek Panchal Mar 22 '18 at 15:55
  • magento.stackexchange.com/questions/219319/… is my model files – Mano M Mar 22 '18 at 15:58
  • I spend lot of time in this filter.....still i'm not getting any idea about that... – Mano M Mar 22 '18 at 15:59
  • what do you mean by current product data? – Abhishek Panchal Mar 22 '18 at 16:00
  • I'm trying initSelect() function ResoureModel/Grid/Collection file for customising grid...I can't get current product from registry in this file.. – Mano M Mar 22 '18 at 16:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.