RPCL Components Control States
The ControlState property of every component is assigned a different value depending on the state of the component. You can check against this property to find out which state the components are at, and run different code depending on that.
Its possible values are:
- csDesigning
- The component is being rendered on the Designer (as opposed to a web browser).
- csLoading
- The component is being loaded from a resource file or the PHP session.
To check the state of a component, use the following syntax replacing csState
with a valid value:
if (($this->ControlState & csState) === csState)
{
// The state of the component is ‘csState’.
}