Feb 03, 2011, 8:23 PM
[CLOSED] vbox layout inside column layout
I thought i had the hang of the layouts, but i guess not yet. Why does this not work? For some reason, only the top of the top bar of the calendar shows.
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:ColumnLayout ID="columnLayoutCalendar" runat="server" Split="true" FitHeight="true">
<Columns>
<ext:LayoutColumn>
<ext:Panel ID="plnDatePicker" runat="server" Width="175">
<Items>
<ext:DatePicker
ID="DatePicker1"
runat="server"
Cls="ext-cal-nav-picker">
</Items>
<TopBar>
<ext:Toolbar ID="Toolbar1" runat="server">
<Items>
<ext:Button
ID="Button1"
runat="server"
Text="Save All Events"
Icon="Disk"
/>
</Items>
</ext:Toolbar>
</TopBar>
</ext:Panel>
</ext:LayoutColumn>
<ext:LayoutColumn ColumnWidth="1.0">
<ext:Panel runat="server" ID="plnCalendarComponentWrapper" Border="false" Layout="vbox">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:CalendarPanel
ID="plnCalendar"
runat="server"
ActiveIndex="2"
Border="false"
Height="500">
<EventStore ID="storeCalendarEvents" runat="server" DateFormat="yyyy-MM-ddThh:mm:ss">
<Proxy>
<ext:HttpProxy Url="/Event/GetEventsByDate" />
</Proxy>
</EventStore>
</ext:CalendarPanel>
<ext:Panel ID="plnCalendarEditEvent" runat="server" Hidden="true" Border="false">
<Content>
Hello world
</Content>
</ext:Panel>
</Items>
</ext:Panel>
</ext:LayoutColumn>
</Columns>
</ext:ColumnLayout>
If i just put the calendar in the LayoutColumn then the calendar shows fine. But i want to add additional panels that are vertical of each other. So basically, i want to add hidden panels below the calendar, so i can hide the calendar and show the hidden panels.
Last edited by geoffrey.mcgill; Feb 04, 2011 at 3:08 PM.
Reason: [CLOSED]