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 :(
5 Answers, 1 is accepted
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.
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.
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.
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...!
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.