DefaultSizeRatio - Ability to Change Value

2 posts, 0 answers
  1. Greg
    Greg avatar
    1 posts
    Member since:
    Feb 2011

    Posted 25 Feb 2011 Link to this post

    Hi Telerik

    Is there any possible way of changing the value for RadWindow.DefaultSizeRatio? I wish to change this Static ReadOnly property from its value of 0.75 to 1.

    The reason I ask is that I have come across a scenario where we want the RadWindow to take up the full width of the Application if its contents desire it, else size to fit contents. Currently the RadWindow does this but only to 75% of the width of the application, not 100%.

    I found that by altering the above value during debugging enabled the above functionality to extend to 100% of the application width. Unfortunately since this is a static readonly variable I can not alter it in code. 

    Is there any way to alter this value, or is there another means to when required get the window to take up the full width of the application.

    Note: Starting in Maximised mode is not an option due to having a fixed height, but variable width.
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 01 Mar 2011 Link to this post

    Hi Greg,

    Could you please give us some more details about your implementation of the RadWindow - initially, when maximized the window should take up the whole application (Silverlight plug-in). Could you please send us some screenshots and code snippets. Alternatively, a sample project which demonstrates the issue will be very helpful.
    Also, you can check out this forum post in which is illustrated how to center the RadWindow in the browser, but you could use the same approach for setting the Width of the window.

    Hope this information helps. Please let us know if you have further questions.

    All the best,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top