Prado\Web\UI\ActiveControls\TActivePager::buildListPager PHP Method

buildListPager() protected method

Builds a dropdown list pager Override parent implementation to build Active dropdown lists.
protected buildListPager ( )
    protected function buildListPager()
    {
        $list = new TActiveDropDownList();
        $list->getAdapter()->getBaseActiveControl()->setClientSide($this->getClientSide());
        $this->getControls()->add($list);
        $list->setDataSource(range(1, $this->getPageCount()));
        $list->dataBind();
        $list->setSelectedIndex($this->getCurrentPageIndex());
        $list->setAutoPostBack(true);
        $list->attachEventHandler('OnSelectedIndexChanged', array($this, 'listIndexChanged'));
        $list->attachEventHandler('OnCallback', array($this, 'handleCallback'));
    }