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

Add Combobox to New Appointment Window

5 Answers 107 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Venkata
Top achievements
Rank 1
Venkata asked on 06 May 2012, 09:18 PM
Hi,
I would like to add a Comboxbox to  New Appointment Window(ComboBox will have 2 values "Development" , "Testing")
So User can able to select value from combobox and save into the database.

How can we add Comboxbox..?

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 May 2012, 07:52 AM
Hi,

Try the following code snippet to add RadComboBox in the new appointment window.

ASPX:
<telerik:RadScheduler ID="RadScheduler1" runat="server"......>
   <InlineInsertTemplate>
      <telerik:RadComboBox ID="RadComboBox1" runat="server">
         <Items>
            <telerik:RadComboBoxItem Text="Development" Value="Development" />
            <telerik:RadComboBoxItem Text="Testing" Value="Testing" />
         </Items>
      </telerik:RadComboBox>
   </InlineInsertTemplate>
</telerik:RadScheduler>

Thanks,
Shinu.
0
Venkata
Top achievements
Rank 1
answered on 07 May 2012, 02:49 PM
sorry.. I tried that code but it's not adding into my New Appointment window
0
Shinu
Top achievements
Rank 2
answered on 08 May 2012, 05:20 AM
Hi,

Here I am pasting the full code that I tried which worked as expected.
aspx:
<telerik:RadScheduler ID="radscheduler1" runat="server" DataKeyField="BirthDate" AllowInsert="true" AllowEdit="true" DataEndField="BirthDate" DataStartField="BirthDate" DataSubjectField="BirthDate" AppointmentStyleMode="Auto">
  <InlineInsertTemplate>
    <telerik:RadComboBox ID="RadComboBox1" runat="server">
      <Items>
        <telerik:RadComboBoxItem Text="Development" Value="Development" />
        <telerik:RadComboBoxItem Text="Testing" Value="Testing" />
      </Items>
    </telerik:RadComboBox>
 </InlineInsertTemplate>
</telerik:RadScheduler>

Thanks,
Shinu.
0
Venkata
Top achievements
Rank 1
answered on 08 May 2012, 02:36 PM
I am sorry.. still it's not showing on my New Appointment window
please see attached image(and one ore thing why my Subject, Location, Description Textboxes not showing fully?)
here is my code.. what i am missing..?
can we bind that RadCombobox to database.. if Yes how can we do..?
        <telerik:RadScheduler ID="RadScheduler1" runat="server"
                       DataEndField="EventEndDate" DataKeyField="EventId"
                       DataStartField="EventStartDate" DataSubjectField="Subject" Height="550px"                                                 OnClientAppointmentsPopulating="OnClientAppointmentsPopulating"
                       OnClientNavigationComplete="OnClientNavigationComplete" OnNavigationCommand="RadScheduler1_NavigationCommand"
                       OnNavigationComplete="RadScheduler1_NavigationComplete" EnableDescriptionField="true"
                       Skin="Office2007" Width="100%" StartEditingInAdvancedForm="False" AppointmentStyleMode="Auto"
                       onappointmentinsert="RadScheduler1_AppointmentInsert"
                       onappointmentdelete="RadScheduler1_AppointmentDelete"
                       onappointmentupdate="RadScheduler1_AppointmentUpdate" MinutesPerRow="30"
                       ShowFooter="False" ShowFullTime="True" StartInsertingInAdvancedForm="True"
                       CustomAttributeNames="Location" DataDescriptionField="Description"
                       DataRecurrenceField="RecurrenceRule"
                       DataRecurrenceParentKeyField="CalendarEventRecurrenceTypeID"
                       DataTimeZoneIdField="TimeZone">
                       <advancedform modal="true" EnableTimeZonesEditing="True"
                           EnableCustomAttributeEditing="True" />
                       <appointmenttemplate>
                            <%# Eval("subject")%>
                       </appointmenttemplate>
                        <AdvancedForm Modal="true" />
                   <TimelineView UserSelectable="false" />
                      <InlineInsertTemplate>
                       <telerik:RadComboBox ID="RadComboBox1" runat="server">
                         <Items>
                           <telerik:RadComboBoxItem Text="Development" Value="Development" />
                           <telerik:RadComboBoxItem Text="Testing" Value="Testing" />
                         </Items>
                       </telerik:RadComboBox>
                     </InlineInsertTemplate>
                   <TimeSlotContextMenuSettings EnableDefault="true" />
                   <AppointmentContextMenuSettings EnableDefault="true" />
 </telerik:RadScheduler>
0
Shinu
Top achievements
Rank 2
answered on 09 May 2012, 05:44 AM
Hi Venkata,

Since you are using advanced form for inserting you can use your own template for the advanced form.

ASPX:
<telerik:RadScheduler ID="radscheduler1" runat="server" DataKeyField="BirthDate" StartInsertingInAdvancedForm="true" AllowInsert="true" AllowEdit="true" DataEndField="BirthDate" DataStartField="BirthDate" DataSubjectField="BirthDate" AppointmentStyleMode="Auto">
        <AdvancedInsertTemplate>
                <telerik:RadComboBox ID="RadComboBox1" runat="server">
                    <Items>
                        <telerik:RadComboBoxItem Text="Development" Value="Development" />
                        <telerik:RadComboBoxItem Text="Testing" Value="Testing" />
                    </Items>
                </telerik:RadComboBox>
        </AdvancedInsertTemplate>
</telerik:RadScheduler>

Please take a look into this.

Thanks,
Shinu.
Tags
Scheduler
Asked by
Venkata
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Venkata
Top achievements
Rank 1
Share this question
or