protected function renderDataCellContent($row, $data) { $tmpTemplate = $this->template; $tmpButtons = $this->buttons; $this->template = $this->evaluateExpression($this->template, array('data' => $data, 'row' => $row)); foreach ($this->buttons as $buttonIndex => $button) { foreach ($button['options'] as $optionIndex => $option) { $this->buttons[$buttonIndex]['options'][$optionIndex] = $this->evaluateExpression($this->buttons[$buttonIndex]['options'][$optionIndex], array('data' => $data, 'row' => $row)); } } parent::renderDataCellContent($row, $data); $this->template = $tmpTemplate; $this->buttons = $tmpButtons; }