Hi
I am having trouble figuring out what function is called when i click my custom submit button within the InlineInsertTemplate.
I think its RadScheduler1_AppointmentInsert but if that is so how can i tell what type of button was clicked ie insert or cancel?(I have given them commandnames) I also cannot see how i gain access to the values with any of the custom fields i have added within this template as
Thanks
I am having trouble figuring out what function is called when i click my custom submit button within the InlineInsertTemplate.
I think its RadScheduler1_AppointmentInsert but if that is so how can i tell what type of button was clicked ie insert or cancel?(I have given them commandnames) I also cannot see how i gain access to the values with any of the custom fields i have added within this template as
RadScheduler1_AppointmentInsert(
object sender, SchedulerCancelEventArgs e)
doesnt seem to allow me access anythjing othere than the apppointment information.
| <Telerik:RadPane runat="Server" ID="leftPane" Scrolling="None"> |
| <div style="padding:10px 0px 10px 10px;"> |
| <Telerik:RadScheduler Culture="en-GB" runat="server" ID="RadScheduler1" Skin="Office2007" EnableEmbeddedSkins="True" |
| ShowFooter="true" DayStartTime="08:00:00" DayEndTime="21:00:00" |
| TimeZoneOffset="00:00:00" OverflowBehavior="Expand" SelectedView="MonthView" Height="100%" |
| TimelineView-UserSelectable="false" OnNavigationComplete="RadScheduler1_NavigationComplete" |
| OnAppointmentDelete="RadScheduler1_AppointmentDelete" |
| OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentInsert="RadScheduler1_AppointmentInsert" |
| FirstDayOfWeek="Monday" LastDayOfWeek="Friday" CustomAttributeNames="customTitle" OnClientAppointmentEditing="OnClientAppointmentEditing" |
| OnClientAppointmentMoveStart="OnClientAppointmentMoveStart" ShowAllDayRow="true" OnFormCreated="RadScheduler1_FormCreated" |
| MinimumInlineFormWidth="300" MinimumInlineFormHeight="150"> |
| <AppointmentTemplate> |
| <asp:Label ID="lblTitle" runat="server"><%# Eval("customTitle") %></asp:Label> |
| </AppointmentTemplate> |
| <InlineInsertTemplate> |
| <div id="InlineInsertTemplate"> |
| <table width="100%"> |
| <tr> |
| <td align="right">Note</td> |
| <td> |
| <asp:TextBox ID="txtboxNote" runat="server" TextMode="MultiLine" Width="100%" Height="50px"></asp:TextBox> |
| </td> |
| </tr> |
| <tr> |
| <td align="right">Appointment Type</td> |
| <td> |
| <asp:DropDownList ID="ddlCalendarTypes" runat="server"></asp:DropDownList> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2" align="right"> |
| <table> |
| <tr> |
| <td> |
| <asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert" > |
| <asp:Image runat="server" ID="imgInsert" ImageUrl="Images/ok.gif" AlternateText="insert" /> |
| </asp:LinkButton> |
| </td> |
| <td> </td> |
| <td> |
| <asp:LinkButton ID="CancelButton" runat="server" CausesValidation="False" CommandName="Cancel"> |
| <asp:Image runat="server" ID="imgCancel" ImageUrl="Images/cancel.gif" AlternateText="cancel" /> |
| </asp:LinkButton> |
| </td> |
| </tr> |
| </table> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </InlineInsertTemplate> |
| </Telerik:RadScheduler> |
| </div> |
| </Telerik:RadPane> |
Thanks