Completed
Last Updated: 21 Jun 2017 15:13 by ADMIN
ADMIN
Dimitar
Created on: 21 Nov 2014 13:39
Category: Editors
Type: Bug Report
2
FIX. RadDateTimePicker - when the user clear the whole date, the text is not cleared and the null date appears.
To reproduce:
- select the whole date and press delete.
- the value should be cleared at this point not when the control loses the focus.

Workaround:

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
        AddHandler RadDateTimePicker1.KeyDown, AddressOf KeyDown_EventHandler
    End Sub

    Private Sub KeyDown_EventHandler(sender As Object, e As KeyEventArgs)
        If e.KeyData = Keys.Delete Then
            e.Handled = True
            RadDateTimePicker1.SetToNullValue()
        End If
    End Sub
0 comments