Redeem Now
Read More
Read now
Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-hyperlocal-marketplace-guide

    Create Dynamic Mass Action In Magento2 Grid

    Create Dynamic Mass Action In Magento2 Grid : if you want to create dynamic mass action in any custom grid of magento2, to achieve this you have to follow some steps .

    1. Write mass action code in your ui component phtml file


    Lets take chunk of the above code for better understanding



    2. in this path Webkul\DynamicMassaction\Ui\Component\MassAction\Badge\Assignoptions you need to manipulate your massaction


    3. Now you will see your dynamically added mass actions are displaying on grid.

    So in this way, you can add dynamic massaction in your grid.Hope this blog will help you.

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    2 comments

  • Manoj Chaurasia
    Hello Narendra,

    Thanks for sharing snippet for the dynamic mass action,i have tried using above snippet but it is not giving sub mass action.

    Can you share sample module code so that we can compare entire Module.

    Looking forward for your response.

    It will helpful if you guys sharing github link for code which you have shared because there are many instances where people doing minor issue.

    Thanks

    • Narendra (Moderator)
      Hi Manoj,

      Sorry for the delay.I am creating a githup link for that. for the time being could you please let me know. what kind of error are you facing on creating dynamic massaction?

      Thanks

  • Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close