Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

RadDateTimePicker disable automatic validation

$
0
0

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 asRadDateTimeEditor;
if(dtPicker != null)
{
    var wasNull = dtPicker.Value == null;
    RadDateTimePickerElement el = dtPicker.EditorElement asRadDateTimePickerElement;
    el.TextBoxElement.MaskType = MaskType.FreeFormDateTime;
     
    if(wasNull)
    {
        el.NullDate = newDateTime(1800, 1, 1, 0, 0, 0);
        el.SetToNullValue();
        dtPicker.Value = null;
    }
}

Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>