Does RadWindow support setting size in em?

2 posts, 0 answers
  1. Sheng
    Sheng avatar
    11 posts
    Member since:
    Jul 2019

    Posted 07 Jan 2020 Link to this post

    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?
  2. Rumen
    Rumen avatar
    14431 posts

    Posted 10 Jan 2020 Link to this post

    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.

    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.
Back to Top