Calendar demo
Source of:
Schemas.aspx
<%@ Import Namespace="System.IO" %>
<script runat="server">
protected override void OnLoad(EventArgs e) {
base.OnLoad(e);
SchedulerColorsSchema schema = (SchedulerColorsSchema)
Enum.Parse(typeof(SchedulerColorsSchema), SchemaRadio.SelectedValue);
Sch.LoadColorsSchema(schema);
if (AddImagesCheck.Checked) {
Sch.FreeTimeColor = System.Drawing.Color.Empty;
Sch.BodyStyle.BackImageUrl = "img_0193.jpg";
Sch.ResourceListStyle.BackImageUrl = "img_0204.jpg";
}
}
</script>
<table width="100%">
<tr>
<td>
<gos:Scheduler ID="Sch" runat="server" Height="330px" Width="560px" BackColor="WhiteSmoke"
Caption="Standard colors' schemas" Font-Names="Verdana" Font-Size="Small" FreeDateColor="LightCoral"
FreeTimeColor="Khaki" HorizontalHeaderLine="1px Black Solid" HorizontalLine="1px Silver Solid"
VerticalLine0="2px Silver Solid" VerticalLine1="1px Silver Solid" VerticalResourceLine="1px Silver Solid"
LinkLine="1px Black Solid" BehaviorOptions="AllowOverlapItems, Default">
<Columns>
<gos:ResourceColumn Text="Caption">
</gos:ResourceColumn>
</Columns>
<BodyStyle BackColor="LemonChiffon">
</BodyStyle>
<TimeLineStyle Font-Size="X-Small" ResourceImage="Gray">
</TimeLineStyle>
<CaptionStyle HorizontalAlign="Center" ResourceImage="Blue">
</CaptionStyle>
<ResourceListStyle BackColor="Snow">
</ResourceListStyle>
<ResourceHeaderStyle BackColor="#D5E1FF">
</ResourceHeaderStyle>
</gos:Scheduler>
</td>
<td valign="top">
Select one of color schemas to be used by a scheduler:<br />
<br />
Scheduler.LoadColorsSchema(schema);<br />
<br />
<asp:RadioButtonList ID="SchemaRadio" runat="server" AutoPostBack="True">
<asp:ListItem>None</asp:ListItem>
<asp:ListItem Selected="True">Standard</asp:ListItem>
<asp:ListItem>Blue</asp:ListItem>
<asp:ListItem Value="BlackAndWhite">Black & White</asp:ListItem>
<asp:ListItem>Chocolate</asp:ListItem>
</asp:RadioButtonList>
<br />
<asp:CheckBox ID="AddImagesCheck" runat="server" Text="Add images to background of the scheduler."
AutoPostBack="True" />
<br />
<br />
<a href="PrintDemo.aspx?schema=<%= SchemaRadio.SelectedValue %>">Print this scheduler</a>
<br />
<span style="font-size: 7pt">Show source code for <a href="../ShowSource.aspx?file=<%=
Server.UrlEncode(Path.Combine(Path.GetDirectoryName(Request.PhysicalPath), "PrintDemo.aspx")) %>">
PrintDemo.aspx</a> page.</span>
</tr>
</table>
<span style="font-size: 8pt">Scheduler can configure layout of a control in a browser
in many ways. There are many properties configuring layout of areas such as caption,
grid, resource list, timeline etc. It is possible to configure style of individual
lines a control is built of and buttons on it. All colors can be modified. Font,
font size and allignment can also be changed. These settings can also be configured
individually for particular resource columns, time columns, rows (independently
in time grid, resource tree and individual SchedulerItem objects).<br />
Using a Scheduler.LoadColorsSchema() method a control can be initialized with one
of four standard color schemes.<br />
This sample page allows to quickly review these schemes. It is sufficient to choose
appropriate setting on the right of a HTML page</span>