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

RADWindow Resizing problem

1 Answer 72 Views
Window
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 19 Aug 2011, 11:23 PM

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);  

oWnd.SetHeight(1000);

oWnd.SetWidth(400); 

oWnd.SetUrl(

"/CaasCustomerPortal/CreateNewFarm.aspx");  

oWnd.Show(); 

return false

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

 

}

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 23 Aug 2011, 09:12 AM
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,
Marin
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 >>

Tags
Window
Asked by
Vikas
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or