Exemplo n.º 1
0
 /**
  * Update the admin datagrid.
  *
  * @return string new grid html
  */
 public function partial_datagrid()
 {
     try {
         $grid = DataGrid::resume($this->getNode());
         $this->modifyDataGrid($grid, DataGrid::RESUME);
     } catch (Exception $e) {
         $grid = DataGrid::create($this->getNode());
         $this->modifyDataGrid($grid, DataGrid::RESUME);
     }
     return $grid->render();
 }
Exemplo n.º 2
0
 /**
  * Update the admin datagrid.
  *
  * @return string new grid html
  */
 public function partial_datagrid()
 {
     try {
         $grid = DataGrid::resume($this->getNode());
         $this->modifyDataGrid($grid, DataGrid::RESUME);
     } catch (Exception $e) {
         $grid = DataGrid::create($this->getNode());
         $this->modifyDataGrid($grid, DataGrid::CREATE);
     }
     if ($this->redirectToSearchAction($grid)) {
         return '';
     }
     return $grid->render();
 }
Exemplo n.º 3
0
 /**
  * Updates the datagrid for the edit and display actions.
  *
  * @return string grid html
  */
 public function partial_grid()
 {
     $this->createDestination();
     $node = $this->getDestination();
     try {
         $grid = DataGrid::resume($node);
         $this->modifyDataGrid($grid, DataGrid::RESUME);
     } catch (Exception $e) {
         $grid = DataGrid::create($node);
         $this->modifyDataGrid($grid, DataGrid::CREATE);
     }
     return $grid->render();
 }