RADWindow Resizing problem

2 posts, 0 answers
  1. Vikas
    Vikas avatar
    2 posts
    Member since:
    Aug 2011

    Posted 19 Aug 2011 Link to this post

    I Have desigend a Master Page whcih holds RADWindowManager and RADWindow control, but when I try tom resize the window it gets resized only Horizontally. Height doesn't get changed need help: Tried both SetSize(0 and SetHeight()


    function OpenCreateVirtualFarmWindow(button, args) {  

    var oManager = GetRadWindowManager();  

    var oWnd = oManager.getWindowByName("CaasRADWindow");  

    //oWnd.SetSize(400, 400);  






    return false

    //CreateAndShowModal('/CreateNewFarm.aspx', 'Modal1', 'Default Window at 450 pixels wide', 450);



  2. Marin Bratanov
    Marin Bratanov avatar
    4609 posts

    Posted 23 Aug 2011 Link to this post

    Hello Vikas,

    Please examine the Client-side API of the RadWindow for the correct names of the methods. These old ones are still retained for backwards compatibility, yet I would advise using the newer ones.

    Setting the size of a RadWindow can be limited if either a RestrictionZoneID is set, or the MaxWidth, MinWidth, MaxHeight, MinHeight are defined. Please make sure this is not the case in your scenario.

    You can find attached a simple page that I based on your function and it seems to be working correctly on my end: http://screencast.com/t/rlInqglaY. I only changed the Height you set, as 1000 pixels is more than the viewport of most browsers and would result in the RadWindow being hidden behind the toolbar of the browser. Which can also be a cause for this limitation if you have set the KeepInScreenBounds property to true.

    I hope comparing your page with mine will help you find and eliminate the issue.

    Kind regards,
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top