Repro steps:
Observed behavior:
Expected behavior:
Observation / suggestion:
Hi Martin,
Thank you for the provided details and steps.
This behavior comes from the RadDateTimePickerElement inside the editor. The editor is represented by a RadDateTimeEditorElement which derives from RadDateTimePickerElement. You can see the same behavior when using the RadDateTimePicker control stand-alone. In this case, you could set the MaskType property of the TextBoxElement inside the control to FreeFormDateTime. The validation will be triggered when the user leaves the cell. You can set this property in the CellEditorInitialized event handler. Give this property a try and let me know how it goes.
private void RadVirtualGrid1_CellEditorInitialized(object sender, VirtualGridCellEditorInitializedEventArgs e)
{
var dateTimeEditor = e.ActiveEditor as VirtualGridDateTimeEditor;
if (dateTimeEditor != null)
{
var editorElement = dateTimeEditor.EditorElement as RadDateTimeEditorElement;
editorElement.TextBoxElement.MaskType = MaskType.FreeFormDateTime;
editorElement.Format = DateTimePickerFormat.Custom;
editorElement.CustomFormat = "dd-MM-yyyy";
}
}
Regards,
Dinko | Tech Support Engineer
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.