This is related to my current issue : http://www.telerik.com/forums/override-gridtimedatetimecolumn-autofilling-to-current-time. But, it is not helping as not able to reset the value to null...
RadDateTimeEditor dtPicker = e.ActiveEditor
as
RadDateTimeEditor;
if
(dtPicker !=
null
)
{
var wasNull = dtPicker.Value ==
null
;
RadDateTimePickerElement el = dtPicker.EditorElement
as
RadDateTimePickerElement;
el.TextBoxElement.MaskType = MaskType.FreeFormDateTime;
if
(wasNull)
{
el.NullDate =
new
DateTime(1800, 1, 1, 0, 0, 0);
el.SetToNullValue();
dtPicker.Value =
null
;
}
}