Approved
Last Updated: 20 Nov 2017 15:19 by ADMIN
ADMIN
Dimitar
Created on: 28 Sep 2017 08:13
Category: Editors
Type: Bug Report
1
FIX. RadTimePicker - one cannot set the time when using the free form format provider.
To reproduce:
 radTimePicker1.Value = DateTime.Now.AddDays(10);
 radTimePicker1.TimePickerElement.MaskedEditBox.MaskType = Telerik.WinControls.UI.MaskType.FreeFormDateTime;

Workaround:

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
    radTimePicker1.Value = DateTime.Now.AddDays(10);

    var provider = radTimePicker1.TimePickerElement.MaskedEditBox.Provider as FreeFormDateTimeProvider;

    provider.MinDate = DateTime.MinValue;
    provider.MaxDate = DateTime.MaxValue;
}

0 comments