AppViewMasterPageBase.NavigationManager¶
AppViewMasterPageBase.NavigationManager is a nested helper class that provides a session-state-backed alternative to AppViewMasterPageBase's direct FocusControl property. Rather than driving focus immediately from a Control reference during the current page's rendering lifecycle, it classifies a control by its bound control ID, stores the derived focus target in Session("focuscontrol"), and emits legacy Infragistics 11.1 client script (igdrp_/igcmbo_/ igedit_ calls) that can run across a redirect or a different page in the same session.
Purpose¶
- Classify a control by its
BoundControlId, redirecting theSAIFMENUcontrol's focus target to theCVTextBoxcontext box so menu-driven navigation lands the user in the correct context field. (BR-CORE-031) - Persist the derived focus target in
Session("focuscontrol")so it survives a redirect to a different page within the same session. - Generate legacy Infragistics client script (
igdrp_,igcmbo_,igedit_focus/select calls) appropriate to the stored control's type.
Context¶
- Namespace:
SAIF.Presentation.Web.Core(nested insideAppViewMasterPageBase) - Assembly/package:
SAIF.Presentation.Web.Core.Infragistics111(merged intoSAIF.Presentation.Web.Infragistics111.dllviaSAIF.BOF.Presentation.Web.Infragistics111.nuspec)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
BoundControlId |
Public Property BoundControlId As String |
Setting this property classifies the target control and stores the derived focus ID in Session("focuscontrol"); the SAIFMENU control name is redirected to the CVTextBox context box. |
GenerateScripts() |
Public Function GenerateScripts() As String |
Reads the stored Session("focuscontrol") value and emits the matching legacy Infragistics igdrp_/igcmbo_/igedit_ focus (and, where applicable, select) client-side call for that control. |
Behavioral notes¶
- Because the focus target is stored in session state rather than passed as a live
Controlreference,NavigationManagercan drive focus on the page that is rendered after a redirect, which the siblingFocusControlproperty onAppViewMasterPageBasecannot do. - Redirecting the
SAIFMENUcontrol's target toCVTextBoxmeans callers that setBoundControlId = "SAIFMENU"should expect the context text box, not the menu control itself, to receive client-side focus.
Constraints and usage notes¶
- Callers must set
BoundControlIdbefore the page that readsSession("focuscontrol")renders, orGenerateScriptswill have nothing meaningful to emit.**
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.
Sources¶
SAIF.Presentation.Web.Core.Infragistics111/AppViewMasterPageBase.vb