Class \Prado\Web\UI\ActiveControls\TActiveCheckBoxList
TActiveCheckBoxList class.
The active control counter part to checkbox list control. The \Prado\Web\UI\ActiveControls\setAutoPostBack property is set to true by default. Thus, when a checkbox is clicked a \Prado\Web\UI\ActiveControls\onCallback event is raised after OnSelectedIndexChanged event.
With ActiveControl.EnableUpdate set to true (default is true), changes to the selection will be updated on the client side.
List items can not be changed dynamically during a callback request.
Class hierarchy
- \Prado\Web\UI\ActiveControls\TActiveCheckBoxList implements IActiveControl, ICallbackEventHandler
- \Prado\Web\UI\WebControls\TCheckBoxList implements IRepeatInfoUser, INamingContainer, IPostBackDataHandler, IValidatable
- \Prado\Web\UI\WebControls\TListControl implements IDataRenderer
- \Prado\Web\UI\WebControls\TDataBoundControl
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.1
public
|
__construct() : mixed
Creates a new callback control, sets the adapter to
TActiveListControlAdapter. If you override this class, be sure to set the
adapter appropriately by, for example, by calling this constructor.
|
public
|
|
public
|
|
public
|
onCallback(TCallbackEventParameter $param) : mixed
This method is invoked when a callback is requested. The method raises
'OnCallback' event to fire up the event handlers. If you override this
method, be sure to call the parent implementation so that the event
handler can be invoked.
|
public
|
raiseCallbackEvent(TCallbackEventParameter $param) : mixed
Raises the callback event. This method is required by {@see
ICallbackEventHandler} interface.
This method is mainly used by framework and control developers. |
protected
|
addAttributesToRender(mixed $writer) : mixed
Ensure that the ID attribute is rendered and registers the javascript code
for initializing the active control.
|
protected
|
createRepeatedControl() : TActiveCheckBoxListItem
Creates a control used for repetition (used as a template).
|
protected
|
getClientClassName() : string
Gets the name of the javascript class responsible for performing postback for this control.
This method overrides the parent implementation. |
protected
|
getSpanNeeded() : bool
Since at least a control with id is needed to update the content during callback,
always force the surrounding span to be rendered, so initially empty lists can be
updated later.
|
protected
|
renderClientControlScript(mixed $writer) : mixed
Override parent implementation, no javascript is rendered here instead
the javascript required for active control is registered in {@see addAttributesToRender}.
|