Jump to content

AtkDataGrid

From NusaATK
Revision as of 15:11, 7 November 2008 by Maurice (talk | contribs) (Modify datagrid)

Modify datagrid

To modify the behaviour or layout of the datagrid you can add the method 'modigyDatagrid' to your AtkNode.

   /**
    * Modify grid.
    * 
    * @param atkDataGrid $grid grid
    * @param int         $mode CREATE or RESUME
    */
   public function modifyDataGrid(atkDataGrid $grid, $mode)
   {    
     // Remove the record count summary in the bottom right of the datagrid
     $grid->removeComponent("summary");
   }