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

Does RadWindow support setting size in em?

1 Answer 57 Views
Window
This is a migrated thread and some comments may be shown as answers.
Sheng
Top achievements
Rank 1
Iron
Iron
Sheng asked on 07 Jan 2020, 04:29 PM
The controls in my RadWindow use em unit for width to accommodate the browser's font-size selection by user. So I want to set the RadWindows' width in em also, but I found its not working. Any advice?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 10 Jan 2020, 12:57 PM

Hello Sheng,

You can use the standard approach for setting the Width and Height through the codebehind as shown below:

RadWindow1.Width = new Unit(1, UnitType.Em); //set the width in em
RadWindow1.Width = Unit.Point(220); //set the width in points
RadWindow1.Width = Unit.Pixel(120); //set the width in pixels
RadWindow1.Width = Unit.Percentage(1220); //set the width in percentage
The same is valid for the height property too.

Regards,
Rumen
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
Tags
Window
Asked by
Sheng
Top achievements
Rank 1
Iron
Iron
Answers by
Rumen
Telerik team
Share this question
or