Jump to content

AtkDataGrid: Difference between revisions

From NusaATK
New page: {{class|atk/datagrid}}
 
Maurice (talk | contribs)
Modify datagrid
Line 1: Line 1:
{{class|atk/datagrid}}
{{class|atk/datagrid}}
==Modify datagrid==
To modify the behaviour or layout of the datagrid you can add the method 'modigyDatagrid' to your AtkNode.
<code> 
    /**
    * 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");
    }
</code>

Revision as of 15:11, 7 November 2008

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");
   }