/**
*
* I overrode it for making header and body separately
*
*/
public function renderItems()
{
if (!$this->fixedHeader) {
return parent::renderItems();
}
$content = array_filter([$this->renderCaption(), $this->renderColumnGroup(), $this->showHeader ? $this->renderTableHeader() : false]);
$header = Html::tag('table', implode("\n", $content), $this->tableOptions);
$content = array_filter([$this->renderCaption(), $this->renderColumnGroup(), $this->showFooter ? $this->renderTableFooter() : false, $this->renderTableBody()]);
$body = Html::tag('table', implode("\n", $content), $this->tableOptions2 ?: $this->tableOptions);
return strtr($this->fixedHeaderTemplate, ['{header}' => $header, '{body}' => $body]);
}