Declined
Last Updated: 22 Mar 2016 08:54 by ADMIN
ADMIN
Dimitar
Created on: 18 Mar 2016 10:36
Category: Editors
Type: Bug Report
1
FIX. RadDateTimePicker - when FreeFormDateTimeProvider is used with NullDate set pressing Delete when the whole text is selected, does not clear the text box.
Currently, when Delete is pressed the min values is set, however, the textbox should be cleared. 

This can be handled by using a custom provider:
public class MyFreeFormDateTimeProvider : FreeFormDateTimeProvider
{
    public MyFreeFormDateTimeProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
        : base(mask, culture, owner)
    { }
    public override void KeyDown(object sender, KeyEventArgs e)
    {
        if (e.KeyValue != 46)
        {
            base.KeyDown(sender, e);
        }         
    }
}
1 comment
ADMIN
Stefan
Posted on: 22 Mar 2016 08:54
When the text is selected and deleted, the control will fall to its MinDate (by default 01/01/0001). If the NullDate eqals the MinDate, the text will be cleared, alternatively, the MinDate will be displayed. This is desired and expected behavior. This is the reason this item is being declined.