1

Is there a way to create a filter for NULL values in Magento Custom Admin Grid?

0

You can use below code in your Collection.php file

protected function _initSelect()
{
    parent::_initSelect();

    $this->getSelect()->where("main_table.order_id IS NULL"); 
    return $this;
}

Hope this will help you!

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.