/**
  * Renders components.
  *
  * @return string
  */
 public function render()
 {
     $this->setViewData();
     return parent::render();
 }
 /**
  * Renders component and returns output.
  *
  * @return string
  */
 public function render()
 {
     // try to update pagination one mor time for cases when not configured pagination was used and later configured.
     // (in this case we need to rewrite page_size again)
     $this->paginationControl && $this->updatePagination();
     $this->setViewData();
     return parent::render();
 }