I have created a datagrid which will show the Month To Date total Sales. Now during a normal datagrid call it was easy to pass the parameters to the grid from the controller. But I want to show this grid in the dashboard widget. I followed this documentation to create a dashboard widget.
For this dashboard widget we are calling the built-in route “oro_dashboard_widget”. So there is no controller function being called to render this datagrid. The grid will be directly rendered in the twig file by using the renderGrid function.
Now how do I send the start date and end date as parameters to this datagrid? Can anybody please point me in the right direction? Its kind of urgent. Please. 🙂
Thanks and Regards,
You must be logged in to reply to this topic.