Completed
Last Updated: 29 Nov 2017 09:53 by ADMIN
ADMIN
Hristo
Created on: 27 Nov 2017 14:01
Category: Editors
Type: Bug Report
1
FIX. RadDateTimePicker - setting the ReadOnly property on the control is not reflected in the time picker if it is shown by setting the ShowTimePicker property to true
How to reproduce: 
radDateTimePicker1.DateTimePickerElement.ShowTimePicker = true;
radDateTimePicker1.Format = DateTimePickerFormat.Custom;
radDateTimePicker1.DateTimePickerElement.CalendarSize = new Size(330, 250);
radDateTimePicker1.ReadOnly = true;

Workaround: 
this.radDateTimePicker1.DateTimePickerElement.ShowTimePicker = true;
this.radDateTimePicker1.Format = DateTimePickerFormat.Custom;
this.radDateTimePicker1.DateTimePickerElement.CalendarSize = new Size(330, 250);
this.radDateTimePicker1.ReadOnly = true;

RadDateTimePickerCalendar calendarBehavior = this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar;
calendarBehavior.TimePicker.TimePickerElement.ReadOnly = true;
0 comments