BaseControl
The BaseControl class represents a base control with event handling, property management, and difference detection.
Properties
| Name | Description |
|---|---|
| ControlId | The unique identifier of the control. |
| ClientEvents | A list of client-side events associated with the control. |
| ExecutedServerEvents | A list of server events that have been executed. |
| Name | The name of the control. |
| ServerEvents | A list of server-side events associated with the control. |
Constructors
| Name | Description |
|---|---|
| BaseControl() | Initializes a new instance of the BaseControl class with empty event lists. |
Methods
| Name | Description |
|---|---|
| OnInit(sender, e) | Raises the Init event. |
| OnPropertyValueGet(sender, e) | Raises the PropertyValueGet event. |
| OnRender(sender, e) | Raises the Render event. |
| OnLoad(sender, e) | Raises the Load event. |
| GetProtectedData(isDisabledOrReadOnly) | #import (Bimser.CSP.FormControls.Base.ICanProtectData.GetProtectedData(bool)) (shortDescription) |
| GetDifferences(otherObj) | Compares the current instance with another control and returns the differences. |
| SetPropertyValue(mapping, value) | Sets the value of a property specified by a mapping. |
| OnPropertyChanged(sender, e) | Handles the property changed event. |
| OnPreRender(sender, e) | Raises the PreRender event. |
| OnPropertyChanging(sender, e) | Handles the property changing event. |
Events
| Name | Description |
|---|---|
| Init | Triggered when the control is initialized. |
| Load | Triggered when the control is loaded. |
| PreRender | Triggered before the control is rendered. |
| PropertyValueGet | Triggered when retrieving a control property value. |
| Render | Triggered when the control is rendered. |