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

Scale font with grid width

2 Answers 162 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 18 Oct 2016, 08:02 PM

What I'd like to do is to be able to set it so the amount of text displayed in the columns is fixed and when the grid is resized the size of the font changes to keep the text displayed in each row fixed while having the number of rows shown vary as needed.

Using your Binding to 1 Million records Sample to show what I want, I took a screenshot stretched the grid by 50% in height and width to simulate text enlarging
as the window was widened, and then cropped out 5.5 of the 17 rows of data so that the number of rows visible was reduced because the height wasn't changed.

 

https://i.imgur.com/sctAk9F.png

2 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 21 Oct 2016, 11:33 AM
Hi Dan,

Please check the following MSDN blog - UI Scaling(UI Zooming) with WPF as I believe it will help to achieve your requirement. I have also attached a sample project for your reference.

Regards,
Stefan Nenchev
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
0
Tran
Top achievements
Rank 1
answered on 28 Apr 2020, 01:21 PM

hi Stefan newchev,

 

We are developing projects using Telerik controls. Including 1 module with zoom feature for RadGridView. I ran your sample, but there was a problem when I zoomed out. Border in row is lost, and this disappearance is asynchronous (In the photo attached). You can consider this issue not help me?

Tags
GridView
Asked by
Dan
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Tran
Top achievements
Rank 1
Share this question
or