This is a migrated thread and some comments may be shown as answers.

RadForm text format issues

5 Answers 207 Views
Form
This is a migrated thread and some comments may be shown as answers.
Asif
Top achievements
Rank 1
Asif asked on 05 Feb 2019, 11:54 AM

Dears,

I am using Telerik Windows form with below version.

Telerik.WinControls.UI version - 2013.2.724.40
.NET Framework version - 4

I have a strange problem, the text of all the rad controls was omitted and being displayed as Ellipsis (...) even though the control width is greater than the control content(text) width.

 

am facing this issue from the last 3 days but before that same RadForm displayed all the text normally. 

I don't understand the exact problem, whether  some setting are creating the problem or build issues or cache issues or what ??..

I have checked the properties like width, Autosize & Font size  and tried in different ways but find no clue :(

any suggestions.

Thank you.

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 06 Feb 2019, 07:09 AM
Hi Asif,

This happens because the application is becoming DPI aware at run-time. By default, the export engine is shared with the WPF suite and the DPI is enabled there on an assmbly level. So when a type from a WPF assembly is initialized the application becomes DPI-aware at runtime. There are two solutions: 

• Make the application DPI-aware explicitly. Detailed information is available here: DPI Support.
• Explicitly make the app DPI-Unaware. This is explained in this article: HDPI Tips and Tricks.

I hope this will be useful. Let me know if you have additional questions.
 
Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Asif
Top achievements
Rank 1
answered on 06 Feb 2019, 10:08 AM

Hi Dimitar,

I have gone through the links & tried the possible solutions like setting AutoscaleMode.Font & Autosize properties but it didn't work.

Since, I am working on WinForms (not a WPF application) it doesn't support 'EnableDpiScaling' , 'AutoScaleDimensions' or adding app.manifest to my project.

One important thing I would like to highlight is, The application scaling is normal when deploying & running on the server.
It causes this issue only when I am running/debugging through Visual studio 2015 in my PC(Windows 10).

Awaiting your reply.

Thank you

0
Dimitar
Telerik team
answered on 06 Feb 2019, 12:10 PM
Hi Asif,

Perhaps your machine is using an HDPI monitor while the deployment machine is at 100% (see attached).

In addition, it is ok and valid to have a manifest file in a WinForms application: c# - How do I create/edit a Manifest file?

I am aware that the EnableDpiScaling property is not available in your version, you can use the approach described in the last section of the following article (to disable the scaling): HDPI Tips and Tricks.

The AutoScaleDimensions property is automatically set depending on the current scaling setting and it can be found in the Designer.cs file (see attached). It would be updated each time the designer is opened. 

Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Asif
Top achievements
Rank 1
answered on 06 Feb 2019, 03:55 PM

Hi Dimitar,

Thanks for the quick response.

It works like a charm***  by changing the display monitor resolution  from 125% to  100% (I didn't add the app.manifest file to my project).

Is there any other way to achieve the same scaling  using 125% resolution in HDPI monitor...!

 

Regards

Asif

 

 

 

0
Dimitar
Telerik team
answered on 07 Feb 2019, 11:05 AM
Hi Asif,

There is no other way to handle the scaling. In the latest version, there is better built-in support for it and the work required to handle the HDPI scaling is minimal, but still, this cannot be handled automatically. There is one more article that can be useful and can help you with the scaling: WinForms Scaling at Large DPI Settings–Is It Even Possible?

I hope this helps. 

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Form
Asked by
Asif
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Asif
Top achievements
Rank 1
Share this question
or