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

Window with custom height

1 Answer 53 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 16 Feb 2009, 02:19 PM
Hello,

I am creating a RadWindow from codebehind like so:

 

private void showPopup(string url, string skin, int width, int height, bool isModal, bool isDraggable, bool hasCloseIcon)

 

{

 

RadWindow radwPopup = new RadWindow();

 

radwPopup.EnableEmbeddedSkins =

false;

 

radwPopup.VisibleStatusbar =

false;

 

radwPopup.ReloadOnShow =

true;

 

radwPopup.KeepInScreenBounds =

true;

 

radwPopup.NavigateUrl = url;

radwPopup.Skin = skin;

radwPopup.Width = width;

radwPopup.Height = height;

radwPopup.Modal = isModal;

 

 

if (hasCloseIcon)

 

radwPopup.Behaviors =

WindowBehaviors.Close;

 

radwPopup.VisibleOnPageLoad =

true;

 

 

 

popupUpdatePanel.ContentTemplateContainer.Controls.Add(radwPopup);

radwPopup.Visible =

true;

 

}

The problem is that the height can differ but the IFrame used by the RadWindow isn't
resizing with the specified Height. Is there a better way to achieve this or would i have
to somehow override the height of the IFrame with embedded CSS or use javascript?

I'm using a slightly altered version of the Web2.0 skin.

Kind regards,

Mark Dekker

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Feb 2009, 02:37 PM
Hello Mark,

I am not quite sure what exactly is the problem but the code that you posted looks good so at this point I cannot tell what the fix can be. Could you please open a support ticket and send me a small sample project where the problem that you experience can be observed? I will check it and get back to you right away.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Mark
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or