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
answered on 10 Jan 2020, 12:57 PM
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.
Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers.Learn More.