Add Combobox to New Appointment Window

6 posts, 0 answers
  1. Venkata
    Venkata avatar
    128 posts
    Member since:
    Nov 2009

    Posted 06 May 2012 Link to this post

    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..?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 May 2012 Link to this post

    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.
  3. Venkata
    Venkata avatar
    128 posts
    Member since:
    Nov 2009

    Posted 07 May 2012 Link to this post

    sorry.. I tried that code but it's not adding into my New Appointment window
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 08 May 2012 Link to this post

    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.
  5. Venkata
    Venkata avatar
    128 posts
    Member since:
    Nov 2009

    Posted 08 May 2012 Link to this post

    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>
  6. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 May 2012 Link to this post

    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.
Back to Top