protected function initializeFooterCell($cell, $columnIndex)
{
$text = $this->getFooterText();
if (($classPath = $this->getFooterRenderer()) !== '') {
$control = Prado::createComponent($classPath);
$cell->getControls()->add($control);
if ($control instanceof \Prado\IDataRenderer) {
if ($control instanceof IItemDataRenderer) {
$item = $cell->getParent();
$control->setItemIndex($item->getItemIndex());
$control->setItemType($item->getItemType());
}
$control->setData($text);
}
} else {
if ($text !== '') {
$cell->setText($text);
} else {
$cell->setText(' ');
}
}
}