Class
RadDateTimeEditor

Represents a date time editor in RadGridView.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
[RadToolboxItem(false)]
public class RadDateTimeEditor : BaseGridEditor, IInputEditor, IValueEditor, ISupportInitialize

Inheritance: objectBaseInputEditorBaseGridEditorRadDateTimeEditor

Implements: IInputEditorISupportInitializeIValueEditor

Inherited Members BaseGridEditor.Validate()BaseGridEditor.OnValueChanging(ValueChangingEventArgs)BaseGridEditor.OnValueChanged()BaseGridEditor.OnMouseWheel(MouseEventArgs)BaseGridEditor.EndEditOnLostFocusBaseGridEditor.ClearCellTextBaseInputEditor.isInitializingBaseInputEditor.originalValueBaseInputEditor.BeginInit()BaseInputEditor.EndInit()BaseInputEditor.OnValidating(CancelEventArgs)BaseInputEditor.OnValidated()BaseInputEditor.OnValidationError(ValidationErrorEventArgs)BaseInputEditor.IsActiveBaseInputEditor.IsInitalizingBaseInputEditor.IsInBeginEditModeBaseInputEditor.OwnerElementBaseInputEditor.RightToLeftBaseInputEditor.EditorManagerBaseInputEditor.EditorElementBaseInputEditor.ValueChangingBaseInputEditor.ValueChangedBaseInputEditor.ValidatingBaseInputEditor.ValidatedBaseInputEditor.ValidationError

Constructors

RadDateTimeEditor()

Initializes a new instance of the RadDateTimeEditor class.

Declaration

cs-api-definition
public RadDateTimeEditor()

Properties

CustomFormat

Gets or sets the custom date/time format string.

Declaration

cs-api-definition
public string CustomFormat { get; set; }

Property Value

string

DataType

Gets the type of the editor value

Declaration

cs-api-definition
public override Type DataType { get; }

Property Value

Type

Overrides BaseGridEditor.DataType

IsModified

Gets whether the editor is modified.

Declaration

cs-api-definition
public override bool IsModified { get; }

Property Value

bool

The is modified.

Overrides BaseInputEditor.IsModified

MaxValue

Gets or sets the maximum date and time that can be selected in the editor.

Declaration

cs-api-definition
public DateTime MaxValue { get; set; }

Property Value

DateTime

MinValue

Gets or sets the minimum date and time that can be selected in the editor.

Declaration

cs-api-definition
public DateTime MinValue { get; set; }

Property Value

DateTime

NullValue

The DateTime value assigned to the date picker when the Value is null

Declaration

cs-api-definition
public DateTime NullValue { get; set; }

Property Value

DateTime

Value

Gets or sets the editor value.

Declaration

cs-api-definition
public override object Value { get; set; }

Property Value

object

Overrides BaseInputEditor.Value

Methods

BeginEdit()

Begins the edit operation.

Declaration

cs-api-definition
public override void BeginEdit()

Overrides BaseInputEditor.BeginEdit()

CreateEditorElement()

Creates a new editor element.

Declaration

cs-api-definition
protected override RadElement CreateEditorElement()

Returns

RadElement

a RadElement if successful

Overrides BaseInputEditor.CreateEditorElement()

EndEdit()

Ends the edit operation.

Declaration

cs-api-definition
public override bool EndEdit()

Returns

bool

Overrides BaseInputEditor.EndEdit()

Initialize(object, object)

Initializes the specified owner.

Declaration

cs-api-definition
public override void Initialize(object owner, object value)

Parameters

owner

object

The owner.

value

object

The value.

Overrides BaseGridEditor.Initialize(object, object)

IsCurrentDateValid()

Determines whether the current date is valid.

Declaration

cs-api-definition
protected virtual bool IsCurrentDateValid()

Returns

bool

OnKeyDown(KeyEventArgs)

Translates system key down events to the owner element.

Declaration

cs-api-definition
public override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

Overrides BaseGridEditor.OnKeyDown(KeyEventArgs)

OnKeyUp(KeyEventArgs)

Handles key up events in the editor.

Declaration

cs-api-definition
protected virtual void OnKeyUp(KeyEventArgs e)

Parameters

e

KeyEventArgs

A System.Windows.Forms.KeyEventArgs that contains the event data.