Size of RadWindow retained when resized

4 posts, 0 answers
  1. Atin
    Atin avatar
    10 posts
    Member since:
    Oct 2012

    Posted 22 Oct 2012 Link to this post

    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.
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 24 Oct 2012 Link to this post

    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.

  3. DevCraft banner
  4. Atin
    Atin avatar
    10 posts
    Member since:
    Oct 2012

    Posted 24 Oct 2012 Link to this post

    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
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 24 Oct 2012 Link to this post

    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.

Back to Top