protected function endPjax() { if (!$this->pjax) { return; } echo ArrayHelper::getValue($this->pjaxSettings, 'afterGrid', ''); Pjax::end(); }