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

Resize Window content?

1 Answer 103 Views
Window
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 30 Jan 2009, 03:01 PM
I want to have a RadWindow with a scheduler in it...I'd like the scheduler to keep to the size of the window

Is that even doable?  Inside VS the scheduler has the proper size (100%, 100%), but when I load it in the window it's shrunk back down again

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Feb 2009, 11:58 AM
Hello Steve,

I tried to reproduce the problem with the following setup but to no avail:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!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>RadScheduler </title> 
    <style type="text/css"
    body,form,html 
    { 
        padding:0; 
        margin:0; 
    } 
    </style> 
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server"
        </asp:ScriptManager> 
        <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="End" DataKeyField="ID" 
            DataSourceID="ObjectDataSource1" DataStartField="Start" DataSubjectField="Subject" 
            HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1" Width="100%" Height="100%"
        </telerik:RadScheduler> 
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="AllData" 
            TypeName="AppointmentList"></asp:ObjectDataSource> 
    </form> 
</body> 
</html> 


As you can see from the attached movie, the scheduler correctly changes its width according to the width of RadRotator. Note that the grid inside the scheduler has fixed height and that is why it cannot expand to fill the height of the window.
Could you please tell me if this is the same result that you get?

Regards,
Georgi Tunev
the Telerik team

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