Completed
Last Updated: 03 Oct 2019 11:42 by ADMIN
Release R3 2019 SP1 (LIB 2019.3.1007)

Please refer to the attached sample project and follow the steps illustrated in the attached gif file.

Workaround: initialize a new RadDateTimePicker every time you toggle the checkbox:

    Dim location As Point
    Sub New()

        InitializeComponent()
        location = Me.RadDateTimePicker1.Location 
    End Sub
    Private Sub RadCheckBox1_ToggleStateChanged(sender As Object, args As Telerik.WinControls.UI.StateChangedEventArgs) Handles RadCheckBox1.ToggleStateChanged
        Me.Controls.Remove(Me.RadDateTimePicker1)

        Me.RadDateTimePicker1 = New RadDateTimePicker()
        Me.RadDateTimePicker1.Parent = Me
        Me.RadDateTimePicker1.Location = location
        With RadDateTimePicker1
            Dim i_calendar As RadDateTimePickerCalendar = TryCast(.DateTimePickerElement.GetCurrentBehavior(), RadDateTimePickerCalendar)
            If i_calendar IsNot Nothing Then
                If args.ToggleState = Telerik.WinControls.Enumerations.ToggleState.On Then

                    i_calendar.ShowTimePicker = True
                    i_calendar.DropDownMinSize = New Size(450, 350)
                    i_calendar.DropDownMaxSize = New Size(450, 350)
                    .DateTimePickerElement.CalendarSize = New Size(450, 350)
                    .CustomFormat = "dd.MM.yyyy HH:mm" 
                Else
                    i_calendar.ShowTimePicker = False

                    i_calendar.DropDownMinSize = New Size(250, 250)
                    i_calendar.DropDownMaxSize = New Size(250, 250)
                    .DateTimePickerElement.CalendarSize = New Size(250, 250)
                    .CustomFormat = "dd.MM.yyyy"
                End If 
            End If
        End With 
    End Sub

Completed
Last Updated: 01 Sep 2020 13:11 by ADMIN
Release R3 2020

Please use the following code snippet. The user should be allowed to resize the drop down within the specified range as it is illustrated in the gif file:

            RadDateTimePickerCalendar calBehavior = this.radDateTimePicker1.DateTimePickerElement.CurrentBehavior as RadDateTimePickerCalendar;
            calBehavior.DropDownSizingMode = SizingMode.UpDownAndRightBottom;
            calBehavior.DropDownMinSize = new Size(400, 400);
            calBehavior.DropDownMaxSize = new Size(600, 600);

Currently, the user is allowed to shrink the width, but not the height.

Workaround:

        public RadForm1()
        {
            InitializeComponent();
            //this.radDateTimePicker1.CalendarSize = new Size(500, 500);


            
            RadDateTimePickerCalendar calBehavior = this.radDateTimePicker1.DateTimePickerElement.CurrentBehavior as RadDateTimePickerCalendar;
            calBehavior.DropDownSizingMode = SizingMode.UpDownAndRightBottom;
            calBehavior.DropDownMinSize = new Size(400, 400);
            calBehavior.DropDownMaxSize = new Size(600, 600);

           this.radDateTimePicker1.Opened+=radDateTimePicker1_Opened;
        }

        private void radDateTimePicker1_Opened(object sender, EventArgs e)
        {
            RadDateTimePickerCalendar calBehavior = this.radDateTimePicker1.DateTimePickerElement.CurrentBehavior as RadDateTimePickerCalendar;
            calBehavior.PopupControl.MinimumSize= calBehavior.DropDownMinSize;
        }

Completed
Last Updated: 12 Oct 2020 15:11 by ADMIN
Release R3 2020 SP1
Created by: David
Comments: 4
Category: DateTimePicker
Type: Bug Report
0

NOTE: This is my second attempt to get a response from the support team. I am paying for Priority Support, but the ticket below has gone unanswered:

https://feedback.telerik.com/winforms/1487329-popup-calendar-in-raddatetimepicker-does-not-scale-correctly-on-high-dpi-display

See attached screenshot. The popup calendar looks wrong when running on a display with 250% scaling. Surely, that's not correct. The calendar should not be so large and the fonts so small. Am I missing something? I have done all the other steps to enable High DPI support, and as you can see, the textbox area seems to scale fine.

Any ideas? And thanks for your help.

David