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

Set max height - RadWindow

1 Answer 155 Views
Window
This is a migrated thread and some comments may be shown as answers.
mSchmidt
Top achievements
Rank 1
mSchmidt asked on 22 Oct 2008, 09:23 AM
Hi

I have a RadWindow which i would like to have popup on location
300,20

and with a width set to 610 and the height set to maximize to the availheight in the browser (of cause minus this 20)

However this does not work for me, the window gets a height which is much less that the availHeight.

Should i do something else ?



    function addNewClick() {  
        var oWind = $find("<%=RadWindow1.ClientID %>");  
        oWind.moveTo(300, 20);  
        oWind.setSize(610, window.availHeight);  
        oWind.setUrl("CalculationEdit.aspx?selectedID=0");  
        oWind.show();  
 
    } 

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 23 Oct 2008, 12:08 PM
Hi mSchmidt,

Check if window.availHeight returns the correct value. If you are in standards compliant mode, you can get the height of the viewport by using document.documentElement.offsetHeight



Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
mSchmidt
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or