PhpExt : Grid [ class tree ] [ index ] [ all elements ]

Class: PhpExt_Grid_CellSelectionModel

Source Location: /PhpExt/Grid/CellSelectionModel.php

Class PhpExt_Grid_CellSelectionModel

Class Overview

This class provides the basic implementation for single cell selection in a grid. The object stored as the selection and returned by getSelectedCell contains the following properties:

<dl> <dt>record : Ext.data.record</dt> <dd>The Record which provides the data for the row containing the selection</dd> <dt>cell : Ext.data.record</dt> <dd>An object containing the following properties: <dl> <dt>rowIndex : Number</dt> <dd>The index of the selected row</dd> <dt>cellIndex : Number</dt> <dd>The index of the selected cell
Note that due to possible column reordering, the cellIndex should not be used as an index into the Record's data. Instead, the name of the selected field should be determined in order to retrieve the data value from the record by name:

  1.                 var fieldName grid.getColumnModel().getDataIndex(cellIndex);
  2.               var data record.get(fieldName);
</dd> </dl> </dd> </dl>

Located in /PhpExt/Grid/CellSelectionModel.php [line 43]

PhpExt_Object
   |
   --PhpExt_Observable
      |
      --PhpExt_Grid_AbstractSelectionModel
         |
         --PhpExt_Grid_CellSelectionModel

Methods

[ Top ]
Method Summary
PhpExt_Grid_CellSelectionModel   __construct()  

[ Top ]
Methods
Constructor __construct  [line 46]

  PhpExt_Grid_CellSelectionModel __construct( )


API Tags:
Access:  public


Redefinition of:
PhpExt_Grid_AbstractSelectionModel::__construct()

[ Top ]

Documentation generated on Fri, 08 Aug 2008 15:50:55 -0500 by phpDocumentor 1.4.0