Exemplo n.º 1
0
 protected function CreatePageNavigator()
 {
     $result = new CompositePageNavigator($this);
     $partitionNavigator = new PageNavigator('pnav', $this, $this->dataset);
     $partitionNavigator->SetRowsPerPage(20);
     $result->AddPageNavigator($partitionNavigator);
     return $result;
 }
Exemplo n.º 2
0
 protected function CreatePageNavigator()
 {
     $result = new CompositePageNavigator($this);
     $partitionNavigator = new CustomPageNavigator('partition', $this, $this->dataset, $this->RenderText('Department'), $result);
     $partitionNavigator->OnGetPartitionCondition->AddListener('partition' . '_GetPartitionConditionHandler', $this);
     $partitionNavigator->OnGetPartitions->AddListener('partition' . '_GetPartitionsHandler', $this);
     $partitionNavigator->SetAllowViewAllRecords(true);
     $partitionNavigator->SetNavigationStyle(NS_LIST);
     $result->AddPageNavigator($partitionNavigator);
     $partitionNavigator = new PageNavigator('pnav', $this, $this->dataset);
     $partitionNavigator->SetRowsPerPage(20);
     $result->AddPageNavigator($partitionNavigator);
     return $result;
 }