Skip to content
Nayjest edited this page Nov 26, 2014 · 3 revisions

1. Entities

1.1. Component

Component is an object that can be attached to grid components hierarchy and react to initialize & prepare calls. Components must implement IComponent interface.

1.2. Registry

Subtype of component that can store child components

Note: Grid component is not always something that can be rendered.

2. Grid lifecycle

Step 1: Configuration

  • Create & link components & configuration objects

Step 2: Initialization

  • Instantiate grid
  • Initialize components (see IComponent::initialize)
  • Dispatch Grid::EVENT_CREATE

Step 3: Rendering

  • Check cached version
  • Prepare components (apply something to data provider, sort, filter, processinput, etc. Then dispatch EVENT_PREPARE)
  • Reset data provider state
  • Render main template