You can use `$this->grid->filterModel->hasErrors($this->attribute)` here.