protected function renderGridBodyPartsInternally($request) { // Render the rows. $elements = $this->getGridDataElements($request); $renderedRows = $this->renderRowsInternally($request, $elements); // Render the body part. $templateMgr = TemplateManager::getManager($request); $gridBodyParts = array(); if (count($renderedRows) > 0) { $templateMgr->assign('grid', $this); $templateMgr->assign('rows', $renderedRows); $gridBodyParts[] = $templateMgr->fetch('controllers/grid/gridBodyPart.tpl'); } return $gridBodyParts; }