So here is my current call to rad scheduler - I get titletextBox value from the appointmentInsert method however I can not find the AppointmentTypeRadioButtonList to get the value of the checkbox.
I feel like I have to be missing something obvious as this can't be as hard as it seems to be.
| <telerik:radscheduler runat="server" Width="797px" SelectedView="MonthView" id="appointmentScheduler" |
| Height="565px" DataEndField="End" DataKeyField="appointmentId" DataSourceID="SqlDataSource1" |
| DataStartField="Start" DataSubjectField="UserName" Skin="WebBlue" |
| onappointmentinsert="appointmentInsert"> |
| <InlineInsertTemplate> |
| <div style='width:400px; background-color:#eeeeee; border:solid 1px #333333; padding:7px;'> |
| Subject:<Br /> |
| <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Subject") %>' Width="90%" |
| TextMode="MultiLine" Height="20px"></asp:TextBox> <Br /> |
| <span>Color code:</span> |
| <asp:RadioButtonList runat="server" ID="AppointmentTypeRadioButtonList" RepeatDirection=Horizontal> |
| <asp:ListItem Text="Call Out" Value="Call Out" /> |
| <asp:ListItem Text="PTO" Value="PTO" /> |
| <asp:ListItem Text="Late" Value="Late" /> |
| <asp:ListItem Text="Leave Early" Value="Leave Early" /> |
| <asp:ListItem Text="Denial" Value="Denial" /> |
| <asp:ListItem Text="Other" Value="Other" /> |
| </asp:RadioButtonList> |
| <br clear="all" /> |
| <div style='float:right;'> |
| <asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert"> |
| <asp:Image runat="server" ID="insertImage" ImageUrl="images/ok.png" AlternateText="insert" /> |
| </asp:LinkButton> |
| <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"> |
| <asp:Image runat="server" ID="Image2" ImageUrl="images/cancel.png" AlternateText="cancel" /> |
| </asp:LinkButton> |
| </div> |
| </div> |
| </InlineInsertTemplate> |
| </telerik:radscheduler> |
| <asp:SqlDataSource ID="SqlDataSource1" runat="server" |
| ConnectionString="<%$ ConnectionStrings:myConnection %>" |
| SelectCommand="SELECT dbo.v2Appointment.appointmentId, dbo.v2Appointment.type, dbo.v2Appointment.UserId, dbo.v2Appointment.Start, dbo.v2Appointment.[End], dbo.v2Appointment.Notes, dbo.v2Appointment.AddedById, dbo.aspnet_Users.UserName, aspnet_Users_1.UserName AS Expr1 FROM dbo.aspnet_Users RIGHT OUTER JOIN dbo.v2Appointment ON dbo.aspnet_Users.UserId = dbo.v2Appointment.UserId LEFT OUTER JOIN dbo.aspnet_Users AS aspnet_Users_1 ON dbo.v2Appointment.AddedById = aspnet_Users_1.UserId"></asp:SqlDataSource> |