/** * 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(); }
/** * 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(); }
/** * 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(); }