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

[Solved] Prometheus RadWindow wrong size

5 Answers 217 Views
Window
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 14 Dec 2007, 01:44 PM
Hi,

I've just installed prometheus to try out the new client side events, but have a problem. The windows I create are the wrong size when set in the server code behind page. The window seems to just take the width based on the icons in it's caption bar.

I've created a test page with exactly the same code and it behaves correctly. The only difference I can see is that my main app is based on a master page and therefore has a content page. The latest non-prometheus version runs fine. Does anyone else have this problem or can see if I'm doing something wrong with the Prometheus version?

===============
ASPX from main app
===============

<%

@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="TestPage.aspx.vb" Inherits="TestPage" title="Untitled Page" %>

<%

@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<

asp:Content ID="Content1" ContentPlaceHolderID="cphContentPlaceHolder" Runat="Server">

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

</telerik:RadWindowManager>

</

asp:Content>



=====================
Code behind from main app
=====================

Partial

Class TestPage

Inherits System.Web.UI.Page

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

RadWindowManager1.Windows.Clear()

Dim rwiWindow As New Telerik.Web.UI.RadWindow

rwiWindow.Width = 900

rwiWindow.VisibleOnPageLoad =

True

rwiWindow.ShowContentDuringLoad =

True

RadWindowManager1.Windows.Add(rwiWindow)

End Sub

End

Class


===============

ASPX from test app
===============

<%

@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%

@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

html xmlns="http://www.w3.org/1999/xhtml" >

<

head runat="server">

<title>Untitled Page</title>

</

head>

<

body>

<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

</telerik:RadWindowManager>

</form>

</

body>

</

html>


====================
Code Behind from test app
====================

Imports

Telerik.Web.ui

Partial

Class _Default

Inherits System.Web.UI.Page

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

RadWindowManager1.Windows.Clear()

Dim rwiWindow As New Telerik.Web.UI.RadWindow

rwiWindow.Width = 900

rwiWindow.VisibleOnPageLoad =

True

rwiWindow.ShowContentDuringLoad =

True

RadWindowManager1.Windows.Add(rwiWindow)

End Sub

End

Class

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Dec 2007, 01:25 PM
Hello Bobby,

I tried to reproduce the problem locally, but to no avail - the size of the RadWindow is 900px as it should (screenshot attached).

Can you please open a new support ticket and send me your application or a small sample one which reproduces the problem? I will check it and do my best to help.



Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
James
Top achievements
Rank 1
answered on 18 Dec 2007, 11:50 AM
Hi Again,

Sorry for the delay, but I've been trying some things out. I've now created a small application using a master page and content page and the problem doesn't occur.

I'm a bit stumped at the moment why it would behave differently. Is is possible that skins/css files could be causing a problem? With the previous version, I amended the default CSS classes to change the window slightly. The new prometheus window doesn't have a skins path however.

If I turn off skinning/theming for the window manager, the window shrinks down to the width of a scrollbar

Regards

Bobby
0
Georgi Tunev
Telerik team
answered on 18 Dec 2007, 03:13 PM
Hello Bobby,

If you are using some global CSS styles on your page, they can indeed affect the RadWindow control. Unfortunately without having a better look over your exact application, I cannot tell what the exact reason is.

If you can send me your styles, I will try to reproduce the problem locally and check what selector exactly is causing such problem.



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Wei Min Chan
Top achievements
Rank 1
answered on 03 Jan 2008, 03:56 PM
Hmmm.. I think I'm running into the same problem.

Georgi.. has it been tested where multiple RadWindowManagers exists? Say one on the page, and then another in an ASCX used on the page?

Cause it seems like the one in the earlier source order seems to be getting priority and all the other Window definitions on the page aren't working at all.
0
Georgi Tunev
Telerik team
answered on 07 Jan 2008, 01:40 PM
Hello Wei,

I am afraid I am not quite sure what your exact scenario is. Please open a new support ticket and send us a small sample project which reproduces the problem along with reproduction details and description of the desired behavior. We will check it and once we have a better view over your setup, we will do our best to help.




Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
James
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
James
Top achievements
Rank 1
Wei Min Chan
Top achievements
Rank 1
Share this question
or