Initialize binders (page load)¶
Restore the manager's persisted state and wire up each binder's control change-event handlers at the start of the page lifecycle.
| Field | Value |
|---|---|
| Operation ID | OP-BIND-002 |
| Trigger | ASP.NET Load event of the manager control |
| Inputs | ViewState("AutoBind"), the registered binders |
| Outputs | Restored AutoBind setting; control change-event handlers wired up |
| Primary components | clsObjectBindManager.OnLoad, clsObjectBindManager.LoadStateValues, each binder's Init |
| Entry point | SAIF.Presentation.Web.Binding.Infragistics111/clsObjectBindManager.vb |
Steps¶
LoadStateValuesrestoresm_AutoBindfromViewState("AutoBind")when present. (BR-BIND-006)- For each registered binder, call
Init(). - Each binder's
Initsubscribes to its control's change event only whenUseEventsisTrueand the bind type isControlToObjectorTwoWay— for exampleTextBox.TextChanged(clsTextBoxBinder),CheckBox.CheckedChanged(clsCheckBoxBinder),WebNumericEdit.ValueChange(clsWebNumericEditBinder),UltraWebGrid.UpdateRowBatch(clsUltraGridBinder). (BR-BIND-007) (BR-BIND-008) clsCustomValidator.Initinstead forcesBindType = BindTypes.ValidateOnly, so custom validators never participate in data movement. (BR-BIND-009)
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([OnLoad]) --> S1[LoadStateValues restores AutoBind]
S1 --> S2[For each binder: Init]
S2 --> D{UseEvents and ControlToObject/TwoWay?}
D -->|Yes| S3[Subscribe to control change event]
D -->|No| S4[No event subscription]
S3 --> End([Binders ready])
S4 --> End
Failure and edge-case behavior¶
- A binder with
UseEvents = Falseor a display-only bind type never subscribes to control events; its values move only through explicitDataBind()/BindToObject()calls.
Related documentation¶
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified. Statements marked with † were retrieved from dependency library documentation via the Legends CLI RAG service.
Sources¶
- SAIF.Presentation.Web.Binding.Infragistics111/clsObjectBindManager.vb