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

DefaultSizeRatio - Ability to Change Value

1 Answer 33 Views
Window
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 25 Feb 2011, 08:35 AM
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.

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 01 Mar 2011, 12:20 PM
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,
Konstantina
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!
Tags
Window
Asked by
Greg
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or