Completed
Last Updated: 21 Sep 2015 13:51 by ADMIN
ADMIN
Dimitar
Created on: 16 Sep 2015 10:31
Category: Editors
Type: Bug Report
0
FIX. RadTimePicker - the user cannot enter the time when the entire text is selected and the AutoSelectNextPart is set to true.
To reproduce:
- Set the AutoSelectNextPart property to true.
- Selelct the entire text and try to enter the date.

Workaround:
radTimePicker1.TimePickerElement.KeyDown += TimePickerElement_KeyDown;

void TimePickerElement_KeyDown(object sender, KeyEventArgs e)
{
    if (this.radTimePicker1.TimePickerElement.MaskedEditBox.TextBoxItem.Text.Trim('A', 'P', 'M', ' ') == this.radTimePicker1.TimePickerElement.MaskedEditBox.TextBoxItem.SelectedText.Trim('A', 'P', 'M', ' '))
    {
        ((MaskDateTimeProvider)radTimePicker1.TimePickerElement.MaskedEditBox.Provider).SelectFirstEditableItem();
        e.Handled = true;
    }
}

(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments