A newer version of this page is available. Switch to the current version.

ASPxTimeEdit Class

Represents an editor capable of displaying and editing time values.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll


public class ASPxTimeEdit :


The ASPxTimeEdit class represents an editor consisting of an edit region and a pair of spin buttons, which can be used to adjust the date-time value. This value is specified via the ASPxTimeEdit.DateTime property. Changing the editor’s edit value raises the ASPxTimeEdit.DateChanged event.

The appearance and position of spin buttons can be controlled using the settings available via the ASPxTimeEdit.SpinButtons property.

The ASPxTimeEdit allows editing date and time values by typing directly within it, or by clicking spin buttons to increment or decrement different portions of date and time values (months, days, hours, minutes or seconds).

The ASPxTimeEdit editor’s date and time editing functionality is realized by supporting masked input, by design. The edit mask depends upon the value of the ASPxTimeEdit.EditFormat property and can also be defined explicitly using the ASPxTimeEdit.EditFormatString property. The ASPxTextEdit.DisplayFormatString property allows you to specify the pattern used to format the editor’s value for display purposes when the editor is not focused.


The client-side equivalent of this editor control is represented by the ASPxClientTimeEdit object. The editor’s client-side API is enabled if the ASPxEditBase.EnableClientSideAPI property is set to true, or the ASPxEditBase.ClientInstanceName property is defined, or any client event is handled. Available client events can be accessed via the ASPxTimeEdit.ClientSideEvents property.