Fixed pagination not working before data loaded

This commit is contained in:
Jin Hu
2013-09-26 20:29:59 +08:00
parent 220db270cf
commit d9b256d734
2 changed files with 18 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ abstract class DataProvider extends Component implements DataProviderInterface
if ($this->id !== null) {
$this->_pagination->pageVar = $this->id . '-page';
}
$this->_pagination->totalCount = $this->getTotalCount();
}
return $this->_pagination;
}