<%@ Page Language="VB" AutoEventWireup="true" %>
<%@ Register TagPrefix="sds" Namespace="Telerik.Web.SessionDS" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<link rel="Stylesheet" type="text/css" href="styles.css" />
<script src="scripts.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<div class="demo-container no-bg">
<telerik:RadWindowManager RenderMode="Lightweight" ID="Singleton" runat="server">
</telerik:RadWindowManager>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
<telerik:RadScheduler RenderMode="Lightweight" runat="server" ID="RadScheduler1" ShowViewTabs="false" SelectedDate="2012-04-16"
OnClientAppointmentInserting="appointmentInserting" DataSourceID="AppointmentsDataSource"
OnClientAppointmentResizeEnd="appointmentResizeEnd" OnClientAppointmentMoveEnd="appointmentMoveEnd"
DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
OnClientAppointmentMoveStart="OnClientAppointmentMoveStart" OnClientAppointmentResizeStart="OnClientAppointmentResizeStart"
DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" EnableAdvancedForm="false">
<TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
<AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
</telerik:RadScheduler>
</telerik:RadAjaxPanel>
</div>
<asp:SqlDataSource ID="AppointmentsDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:TelerikConnectionString35 %>"
SelectCommand="SELECT * FROM [ConfirmDialog_Appointments] WHERE ([Duration] IS NULL)"
InsertCommand="INSERT INTO [ConfirmDialog_Appointments] ([Subject], [Start], [End], [RecurrenceRule], [RecurrenceParentID], [Duration]) VALUES (@Subject, @Start, @End, @RecurrenceRule, @RecurrenceParentID, @Duration)"
UpdateCommand="UPDATE [ConfirmDialog_Appointments] SET [Subject] = @Subject, [Start] = @Start, [End] = @End, [RecurrenceRule] = @RecurrenceRule, [RecurrenceParentID] = @RecurrenceParentID, [Duration] = @Duration WHERE [ID] = @ID"
DeleteCommand="DELETE FROM [ConfirmDialog_Appointments] WHERE [ID] = @ID">
<DeleteParameters>
<asp:Parameter Name="ID" Type="Int32"></asp:Parameter>
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Subject" Type="String"></asp:Parameter>
<asp:Parameter Name="Start" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="End" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="RecurrenceRule" Type="String"></asp:Parameter>
<asp:Parameter Name="RecurrenceParentID" Type="Int32"></asp:Parameter>
<asp:Parameter Name="Duration" Type="Int32"></asp:Parameter>
<asp:Parameter Name="ID" Type="Int32"></asp:Parameter>
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="Subject" Type="String"></asp:Parameter>
<asp:Parameter Name="Start" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="End" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="RecurrenceRule" Type="String"></asp:Parameter>
<asp:Parameter Name="RecurrenceParentID" Type="Int32"></asp:Parameter>
<asp:Parameter Name="Duration" Type="Int32"></asp:Parameter>
</InsertParameters>
</asp:SqlDataSource>
</form>
</body>
</html>