This is a migrated thread and some comments may be shown as answers.

[Solved] Get the value of a custom buttonlist in InlineInsert Template

1 Answer 99 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 31 Mar 2009, 06:25 PM

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 /> 
                        &nbsp;&nbsp;&nbsp;<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> 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 03 Apr 2009, 03:09 PM
Hi Rick,

I'm afraid that you cannot find directly RadioButtonList control in OnAppointmentInsert event handler. Could you please explain in more details your requirements, so we try to find some other way to access RadioButtonList? And also send us the code of  appointmentInsert method. Thanks

Best wishes,
Yana
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Rick
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or