AutoBindWebDateTimeEdit¶
AutoBindWebDateTimeEdit is the auto-binding wrapper around an Infragistics WebDateTimeEdit, fixed to display and edit dates in MM/dd/yyyy format regardless of the server's culture settings. (BR-AJAX-042) By implementing IProvidesEmbeddableEditor, it can also be hosted directly as a column editor inside an Infragistics UltraWebGrid cell, not just as a standalone page control.
Purpose¶
- Wraps an Infragistics
WebDateTimeEditso date values participate in the shared auto-binding, validation, and styling pipeline via AutoBindControlAncestor. - Forces a fixed
MM/dd/yyyydisplay/edit format so dates are presented consistently across the application regardless of server locale. (BR-AJAX-042) - Implements
Infragistics.WebUI.Shared.IProvidesEmbeddableEditorso the control can be embedded as an in-cell editor for grid columns, extending auto-binding behavior into grid editing scenarios. - Captures a user's edited date/time value on the editor's change event and immediately writes it back to the bound model property. (BR-AJAX-007)
Context¶
- Namespace:
SAIF.Presentation.Web.Controls.V2.AJAX - Assembly/package:
SAIF.Presentation.Web.Controls.AJAX.Infragistics111(packaged inSAIF.BOF.Presentation.Web.Infragistics111) - Base class: AutoBindControlAncestor
- Implements:
Infragistics.WebUI.Shared.IProvidesEmbeddableEditor(Infragistics 11.1, vendor)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
WebDateTimeEdit |
ReadOnly Property WebDateTimeEdit As Infragistics.WebUI.WebDataInput.WebDateTimeEdit |
The underlying Infragistics date/time editor this class wraps |
Textbox_TextChanged |
Sub Textbox_TextChanged(sender As Object, e As Infragistics.WebUI.WebDataInput.ValueChangedEventArgs) |
Copies the editor's current date value into Value, then calls BindToObject and, if AutoValidate, Validate() (BR-AJAX-007, BR-AJAX-006) |
GetLastFocus |
Function GetLastFocus() As String |
Defined to report the last-focused sub-part of the date editor; never called in live code* |
Inherited public members¶
Members in this section are inherited from AutoBindControlAncestor in SAIF.Presentation.Web.Controls.AJAX.Infragistics111. They are available on this type through inheritance.
| Member | Signature | Purpose | Origin |
|---|---|---|---|
AutoPostback |
Property AutoPostback As Boolean |
Controls whether the inner editor posts back on change | SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
AutoBind |
Property AutoBind As Boolean |
Enables or disables participation in BindingManager.DataBind |
SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
AutoValidate |
Property AutoValidate As Boolean (default True) |
Enables automatic validation after a user edit | SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
AutoValidateOnDataBind |
Property AutoValidateOnDataBind As Boolean (default True) |
Enables automatic validation after data binding | SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
RootBindingObject |
Property RootBindingObject As Object |
The page model instance assigned by BindingManager |
SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
BoundObject |
ReadOnly Property BoundObject As Object |
Object resolved by walking BindSource from RootBindingObject |
SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
BindSource |
Property BindSource As String |
Dotted model path to BoundObject |
SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
BindProperty |
Property BindProperty As String |
Name of the property on BoundObject this control reads/writes |
SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
Value |
Property Value As Object |
The editor's current value | SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
DataBind |
Overrides Sub DataBind() |
Binds the model value into the control | SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
StyleControl |
Sub StyleControl(inValid As Boolean) |
Paints the editor red when invalid, resets it otherwise | SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
Validate |
Function Validate() As Boolean |
Runs validation and updates the page error label | SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — AutoBindControlAncestor |
RootObject |
ReadOnly Property RootObject As Object |
The hosting page's Model property value |
SAIF.Presentation.Web.Controls.AJAX.Infragistics111 — SAIFAJAXControlAncestor |
Behavioral notes¶
GetLastFocusis defined but never called anywhere in this library's live source — likely a remnant of a browser-specific workaround.*- All other bind/validate behavior comes unchanged from
AutoBindControlAncestor; this class supplies the concrete InfragisticsWebDateTimeEdit, its fixed date format, and grid-editor embeddability.
Constraints and usage notes¶
- The display/edit format is hard-coded to
MM/dd/yyyyand is not culture-driven; consuming pages cannot vary the date format per locale. (BR-AJAX-042) Infragistics35.WebUI.WebDataInput.v11.1andInfragistics35.WebUI.Shared.v11.1(version 11.1.20111.2090) must be available in the hosting application.
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.
Sources¶
SAIF.Presentation.Web.Controls.AJAX.Infragistics111/AutoBindWebDateTimeEdit.vb