/** * Return whether the grid has editable columns * * @return bool */ public function hasEditableColumns() { if (!is_null($this->_typeModel)) { return count(array_intersect_key($this->getSortedColumns(true, true, false), array_merge($this->_typeModel->getEditableFields($this->getGridType()), $this->_typeModel->getEditableAttributeFields($this->getGridType())))) > 0 || count($this->_typeModel->getEditableAttributes($this->getGridType())) > 0; } return false; }