SAIFWebDateTimeEdit¶
SAIFWebDateTimeEdit extends the Infragistics WebDateTimeEdit control so that the field clears itself when a user focuses it while displaying one of two sentinel dates (01/01/1901 or 12/31/9999) used elsewhere in the application to represent "no date entered." It has no public members beyond the inherited Infragistics surface; all of its added behavior is a single Init-time script registration that wires an onfocus handler.
Purpose¶
- Prevent sentinel min/max dates from displaying as if they were real user-entered values by clearing the field on focus (BR-CTL-012, BR-CTL-013).
Context¶
- Namespace:
SAIF.Presentation.Web.Controls.V2 - Assembly/package:
SAIF.Presentation.Web.Controls.Infragistics111(packaged as source intoSAIF.BOF.Presentation.Web.Infragistics111) - Base class:
Infragistics.WebUI.WebDataInput.WebDateTimeEdit(external Infragistics 11.1 vendor type; not part of this repository's documentation set)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| (none added) | — | This type adds no public members beyond the inherited WebDateTimeEdit surface; its only code is a private Init handler that registers client script (see Behavioral notes). |
Behavioral notes¶
SAIFWebDateTimeEdit_Init(a privateHandles Me.Inithandler, not part of the public surface) registers theSAIFWebDateTimeEdit_Focusclient function under the script keySDTE_Focusand adds anonfocusattribute invoking it with the control'sClientID; see Suppress sentinel dates on focus for the full step sequence.- The guarded script registration is coded twice in succession in the source; the second registration attempt is unreachable in effect because the first satisfies the
IsClientScriptBlockRegisteredguard.*
Constraints and usage notes¶
- Sentinel-date comparison is a literal string match against
01/01/1901and12/31/9999as displayed text, so it depends on the control's active display format matching those exact strings.* - Behavior depends on the Infragistics 11.1 client-side API (
igedit_getById) and is version-locked toInfragistics35.WebUI.WebDataInput.v11.1.*
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts.
Sources¶
SAIF.Presentation.Web.Controls.Infragistics111/SAIFWebDateTimeEdit.vb