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

Radwindow not setting to the given width and height

1 Answer 360 Views
Window
This is a migrated thread and some comments may be shown as answers.
Regeesh Joseph
Top achievements
Rank 1
Regeesh Joseph asked on 02 Jun 2011, 03:41 PM
Hai,

This is my code :

<

 

telerik:RadWindow ID="RadWindowPopup" Width="1100px" Height="750px" Modal

="true"

 

 

 

Left="0" Top="0" EnableShadow="true" DestroyOnClose="true" Visible="true" Behaviors

="Close"

 

 

 

VisibleOnPageLoad="false" runat="server" Title="Local Item Request" Skin

="Web20">

 

 

 

</telerik:RadWindow

>

But it is showing in the default size(small window). I tried with only width and height , not giving other options. But still the same. Also, title is not the one which is given. Showing the pagename( of the page called in radwindow) as title.

Also, I have given only Close as Behaviors. But it is showing all Behaviors (Resize, Minimize, Close, Maximize, Move ) in the popup window.

I want a quick reply.

 

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Jun 2011, 10:30 AM
Hello Regeesh,

I am not quite sure how you are opening the the RadWindow. If you have defined RadWindowManager and opening the Window by using radopen with a new window name which is not defined in RadWindowManager, a new RadWindow will be opened, with the default settings taken from the RadWindowManager. If that is the case one suggestion is to set the Window size from client side.

Take a look at the following help article.
RadWindow Methods.
Here is the code that I tried and which worked as expected.
aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="clientClose.aspx.cs" Inherits="Window_clientClose" %>
<%@ 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">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadWindow ID="RadWindowPopup" Width="1000px" Height="750px" Modal="true"
            Left="0" Top="0" EnableShadow="true" DestroyOnClose="true" Visible="true" Behaviors="Close"
            VisibleOnPageLoad="false" runat="server" Title="Local Item Request" Skin="Web20">
        </telerik:RadWindow>
        <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="openwindow(); return false;" />
    </div>
    </form>
</body>
</html>
Javascript:
<script type="text/javascript">
 function openwindow()
     {
       var wnd = $find('<%=RadWindowPopup.ClientID%>');
        wnd.show();
        return false;
    }
</script>

Thanks,
Shinu.
Tags
Window
Asked by
Regeesh Joseph
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or