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

Size of RadWindow retained when resized

3 Answers 47 Views
Window
This is a migrated thread and some comments may be shown as answers.
Atin
Top achievements
Rank 1
Atin asked on 22 Oct 2012, 11:05 AM
Hi All,

I am having an issue with resizing feature of Radwindow. I have a custom user control having multiple buttons (lets say 10). When the control is loaded, a radwindow popup corresponding to each button is initialized with a set of parameters for height, width, maxheight, minheight. When the user presses first button, the window is opened fine. But if the user resize this window to 100*100 then the next window open in 100*100 size rather than its default. Is this the default feature of RadWindow ?

Another thing i am trying to achieve is - If I do not set the height and width of RadWindow (just max,min), then it is opened with a size according to the content. Now, the first button pressed, opens the window in 30*30 (assuming the content table has only one row). I want that when the next button is pressed (whose content table contains 5 rows) to be opened in 30*30 size (with a scroll) rather than 150*150. This is just like the calling the resize functionality when the user just closed the dialog without actually re-sizing it. Is this feature possible?

Any help will be greatly appreciated.

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 24 Oct 2012, 10:14 AM
Hello Atin,

It seems that you are showing a single instance of the RadWindow control and if this is the case the behavior you are observing is an expected behavior of the RadWindow control. To alter it, you need to set the Width and Height of the RadWindow control to double.NaN every time you open the window.

I'm not sure I understood the second problem correctly, but if you need your window to have initial size you just need to set the Width and Height properties to the desired values.

All the best,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Atin
Top achievements
Rank 1
answered on 24 Oct 2012, 10:27 AM
Hi Miroslav,

Thanks for the reply.

I want to know that is it possible to forcefully use that behavior of the Radwindow (Retain its size when resized for all the instances) when it is closed without resizing. I mean when the first RadWindow is opened and then closed, then the next one should be opened in same size(without the first one having been resized).

Best Regards
Atin
0
Miroslav Nedyalkov
Telerik team
answered on 24 Oct 2012, 02:24 PM
Hello Atin,

To achieve this you just need to set fixed size the new window when opening it. What I would suggest you is to remember the ActualWidth and ActualHeight of the window when it is closed and to use them when opening a new one.

Hope this helps.

Greetings,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Window
Asked by
Atin
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Atin
Top achievements
Rank 1
Share this question
or