I have created the custom table to join sales_order_item and sales order grid.
I need to display the order with complete status by default instead of pending status order.
I have searched for the same and got the solution for magento1, http://inchoo.net/magento/prepared-filter-for-magento-admin-grids/. Could anyone help me to implement the same filter by default on magento2
Now I am getting,
But I need to get complete status order details by default.
Best Answer
Finally, I got the output,
In my xml that defines the grid, I replaced Magento\Backend\Block\Widget\Grid as Test\Custom\Block\Adminhtml\Custom
In my Grid.php