RadDateTimePicker size at screen 125%

6 posts, 1 answers
  1. Frank Beerens
    Frank Beerens avatar
    26 posts
    Member since:
    Jan 2010

    Posted 11 Apr 2014 Link to this post

    Hi,

    The RadDateTimePicker does not resize when the screen is set to 125%.
    In the attachment you can see the difference between the RadTextBox and the RadDateTimePicker.

    Any ideas how to solve this?
  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 16 Apr 2014 Link to this post

    Hello Frank,

    Thank you for writing.

    Please refer to our "WinForms scaling at large DPI settings – is it even possible?" blog post, related to the scaling mechanism of the WinForms platform and how to adjust controls' size according to the scale size. 

    Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Frank Beerens
    Frank Beerens avatar
    26 posts
    Member since:
    Jan 2010

    Posted 16 Apr 2014 Link to this post

    Hello Desislava,

    I have read that post, but don't see the answer. My controls all use the autoscalemode font property, and are designed under 96 DPI.
    Still the scaling does not work correctly when using a RadDateTimePicker, while the RadTextBox scales fine.

    Regards
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 18 Apr 2014 Link to this post

    Hello Frank,

    I have tried to reproduce the described behavior but to no avail. As you can see on the attached screenshots, RadDateTimePicker scales correctly under all different screen settings. There might be something specific about your case which we are missing. Therefore, I would kindly ask you to send us a sample project which demonstrates the wrong scaling. This will let us provide you with further support.

    Thank you for your cooperation. Looking forward to hearing from you.

    Regards,
    Ivan Todorov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Frank Beerens
    Frank Beerens avatar
    26 posts
    Member since:
    Jan 2010

    Posted 23 Apr 2014 in reply to Ivan Todorov Link to this post

    Hi Ivan,

    The issue occurs when using the Windows 8 theme. I am using a Windows 7 pc, don't know if that makes any difference.

    Regards
  7. Answer
    Dess
    Admin
    Dess avatar
    1609 posts

    Posted 24 Apr 2014 Link to this post

    Hello Frank,

    Thank you for writing back.

    I was able to reproduce the problem that you are facing with Windows8 theme. I have logged it in our Feedback Portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - Feedback Item.

    I have also updated your 
    Telerik points.

    Currently, the possible solution that I can suggest is to adjust the DateTimePickerElement.MinSize and DateTimePickerElement.TextBoxElement.MinSize properties:
    public Form1()
    {
        InitializeComponent();
        ThemeResolutionService.ApplicationThemeName = "Windows8";
     
        this.radDateTimePicker1.DateTimePickerElement.MinSize = new Size(0, radDateTimePicker1.Height);
        this.radDateTimePicker1.DateTimePickerElement.TextBoxElement.MinSize = new Size(0, radDateTimePicker1.Height);
       
    }

    I hope this information helps. If you have any additional questions, please let me know.
      
    Regards,
    Desislava
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WinForms is Visual Studio 2017 Ready