Skip to content

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 into SAIF.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 private Handles Me.Init handler, not part of the public surface) registers the SAIFWebDateTimeEdit_Focus client function under the script key SDTE_Focus and adds an onfocus attribute invoking it with the control's ClientID; 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 IsClientScriptBlockRegistered guard.*

Constraints and usage notes

  • Sentinel-date comparison is a literal string match against 01/01/1901 and 12/31/9999 as 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 to Infragistics35.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