title: RadScheduler not working on MonthView
body: <p>I want to show different content to the user depending on the view he is using. For that, i customized the AppointmentTemplate and the AppointmentCreated event. I want also to show appointments with dynamic height, meaning they expand to fill the content but on days its got nothing it shrinks.
  Whats happening is that on MonthView, only the header is shown as in the <a href="http://tinypic.com/r/34ilirs/6">photo</a>:</p>
  
  <p>And here is the DayView: <a href="http://tinypic.com/r/fz3ga8/6">photo</a></p>
  
  <p>Here is the AppointmentCreated </p>
  
  <pre><code>    protected void sched_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) {
  
          using (DBFactory link = new DBFactory()) {
              int evtID = int.Parse(e.Appointment.ID.ToString());
              if (evtID == 0) {
                  evtID = SessionManager.Instance.LastInsertedCalendarEventID;
              }
              CalendarEvent ce = link.GetCalendarEvent(evtID);
  
              Label lblHeader = (Label)e.Container.FindControl("lblHeader");
              Label lblDescription = (Label)e.Container.FindControl("lblDescription");
              Label lbldates = (Label)e.Container.FindControl("lbldates");
              Label lblParticipants = (Label)e.Container.FindControl("lblParticipants");
              Label lblLocale = (Label)e.Container.FindControl("lbllocale");
  
  
              switch (sched.SelectedView) {
  
                  case SchedulerViewType.DayView: 
                      lblLocale.Text = string.Format("{0}", ce.EventLocation1.Location);
                      lblHeader.Text = string.Format("{0} - {1} ", ce.EventType1.EventTypeName, ce.Subject);
                      lblDescription.Text = string.Format("{0}", ce.Description);
                      lbldates.Text = string.Format("{0:hh:mm}h - {1:hh:mm}h", ce.StartDate, ce.EndDate);
                      lblParticipants.Text = string.Format("{0}", link.GetUsernamesFromEvent(evtID));  
                  break;
  
                  case SchedulerViewType.WeekView:
                  case SchedulerViewType.MonthView: 
                      lblLocale.Text = string.Format("{0}", ce.EventLocation1.Location);
                      lblHeader.Text = string.Format("{0} - {1} ", ce.EventType1.EventTypeName, ce.Subject);
                      lblDescription.Text = string.Format("{0}", ce.Description);
                      lbldates.Text = string.Format("{0:hh:mm}h - {1:hh:mm}h", ce.StartDate, ce.EndDate);
                      lblParticipants.Text = string.Format("{0}", link.GetInitialsFromEvent(evtID));
                  break;
  
              }
          }
      }
  </code></pre>
  
  <p>and here is the complete markup</p>
  
  <pre><code>            &lt;tk:RadScheduler ID="sched" runat="server" AppointmentStyleMode="Default" DayEndTime="19:00:00" AllowInsert="true" AllowEdit="true" AllowDelete="true"
                  EnableDescriptionField="True" FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
                  ShowNavigationPane="true" ShowFooter="False" StartEditingInAdvancedForm="true"
                  StartInsertingInAdvancedForm="true" Height="551px"
                  OnFormCreated="sched_FormCreated"
                  OnAppointmentCommand="sched_AppointmentCommand"
                  OnAppointmentCreated="sched_AppointmentCreated"
                  OnAppointmentDataBound="sched_AppointmentDataBound" 
                  Skin="Web20"&gt;
                  &lt;MonthView  AdaptiveRowHeight="true" MinimumRowHeight="50" VisibleAppointmentsPerDay="30"/&gt;
                  &lt;AdvancedForm Modal="true" /&gt;
                  &lt;ExportSettings OpenInNewWindow="true" FileName="SchedulerExport"&gt;
                      &lt;Pdf PageTitle="Schedule" Author="Telerik" Creator="Telerik" Title="Schedule"&gt;&lt;/Pdf&gt;
                  &lt;/ExportSettings&gt;
                  &lt;TimelineView UserSelectable="false" /&gt;
                   &lt;AppointmentContextMenuSettings EnableDefault="true" /&gt;
                  &lt;TimeSlotContextMenuSettings EnableDefault="true" /&gt;
                  &lt;TimeSlotContextMenus&gt;
                      &lt;tk:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu" runat="server"&gt;
                         &lt;Items&gt;
                             &lt;tk:RadMenuItem Text="New Appointment" Value="CommandAddAppointment" /&gt;
                          &lt;/Items&gt;
                      &lt;/tk:RadSchedulerContextMenu&gt;
                  &lt;/TimeSlotContextMenus&gt;
                  &lt;AppointmentContextMenus&gt;
                      &lt;tk:RadSchedulerContextMenu runat="server" ID="ContextMenu1"&gt;
                          &lt;Items&gt;
                              &lt;%--&lt;tk:RadMenuItem Text="Ir para dia" Value="CommandNavigateDay" /&gt;--%&gt;
                              &lt;tk:RadMenuItem Text="Editar" Value="CommandEdit" /&gt;
                              &lt;tk:RadMenuItem Text="Apagar" Value="CommandDelete" /&gt;
                              &lt;%--&lt;tk:RadMenuItem Text="Exportar Para PPF" Value="CommandExport"&gt;&lt;/tk:RadMenuItem&gt;--%&gt;
                          &lt;/Items&gt;
                      &lt;/tk:RadSchedulerContextMenu&gt;
                  &lt;/AppointmentContextMenus&gt;
                  &lt;AppointmentTemplate&gt;
                      &lt;asp:Label runat="server" ID="lblHeader" Font-Bold="true" /&gt;
                      &lt;hr /&gt;
                      &lt;table border="0"&gt;
                          &lt;tr&gt;
                              &lt;td style=" border-color:transparent;"&gt;&lt;span style="font-weight:bold;"&gt;Descricao: &lt;/span&gt;&lt;/td&gt;
                              &lt;td style=" border-color:transparent;"&gt;&lt;asp:Label ID="lblDescription" runat="server" /&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td  style=" border-color:transparent;"&gt;&lt;span style="font-weight:bold;"&gt;Participantes: &lt;/span&gt;&lt;/td&gt;
                              &lt;td  style=" border-color:transparent;"&gt;&lt;asp:Label ID="lblParticipants" runat="server" /&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td  style=" border-color:transparent;"&gt;&lt;span style="font-weight:bold;"&gt;Duracao: &lt;/span&gt;&lt;/td&gt;
                              &lt;td  style=" border-color:transparent;"&gt;&lt;asp:Label ID="lblDates" runat="server" /&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td  style=" border-color:transparent;"&gt;&lt;span style="font-weight:bold;"&gt;Local: &lt;/span&gt;&lt;/td&gt;
                              &lt;td  style=" border-color:transparent;"&gt;&lt;asp:Label ID="lblLocale" runat="server" /&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/table&gt;
                  &lt;/AppointmentTemplate&gt;
                  &lt;AdvancedInsertTemplate&gt;
                      &lt;div class="rsAdvancedEdit rsAdvancedModal" style="position: relative; margin-right: -100px"&gt;
                          &lt;div class="rsModalBgTopLeft"&gt;&lt;/div&gt;
                          &lt;div class="rsModalBgTopRight"&gt;&lt;/div&gt;
                          &lt;div class="rsModalBgBottomLeft"&gt;&lt;/div&gt;
                          &lt;div class="rsModalBgBottomRight"&gt;&lt;/div&gt;
                          &lt;div class="rsAdvTitle"&gt;
                              &lt;h1 class="rsAdvInnerTitle"&gt;&lt;%# Container.Appointment.Owner.Localization.AdvancedNewAppointment %&gt;&lt;/h1&gt;
                              &lt;asp:LinkButton runat="server" ID="LinkButton1" CssClass="rsAdvEditClose"
                                  CommandName="Cancel" CausesValidation="false" ToolTip='&lt;%# Container.Appointment.Owner.Localization.AdvancedClose %&gt;'&gt;
                                          &lt;%# Container.Appointment.Owner.Localization.AdvancedClose%&gt;
                              &lt;/asp:LinkButton&gt;
                          &lt;/div&gt;
                          &lt;div class="rsAdvContentWrapper" style="background-color: #ffffff;"&gt;
                              &lt;table border="0"&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;
                                          &lt;asp:Label runat="server" Text="Sumário" ID="lblSummaryHdr" /&gt;&lt;/td&gt;
                                      &lt;td colspan="3"&gt;
                                          &lt;asp:TextBox ID="txtSubject" runat="server" CssClass="textbox" Columns="60" Text='&lt;%# Bind("Subject") %&gt;' /&gt;&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;asp:Label ID="TextBox1" runat="server" Text='&lt;%# Bind("ID") %&gt;' Visible="false" /&gt;&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Descrição&lt;/td&gt;
                                      &lt;td colspan="3"&gt;
                                          &lt;asp:TextBox ID="txtDescription" CssClass="textbox" Columns="60" runat="server" Text='&lt;%# Bind("Description") %&gt;'&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Inicío&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadDateTimePicker ID="startInput" SelectedDate='&lt;%# Bind("Start") %&gt;' runat="server"&gt;&lt;/tk:RadDateTimePicker&gt;
                                      &lt;/td&gt;
                                      &lt;td&gt;Fim&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadDateTimePicker ID="finishInput" SelectedDate='&lt;%# Bind("End") %&gt;' runat="server"&gt;&lt;/tk:RadDateTimePicker&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Tipo&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadComboBox ID="ddlEventType" runat="server" CssClass="combo" /&gt;
                                      &lt;/td&gt;
                                      &lt;td&gt;Sala&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadComboBox ID="ddlLocations" runat="server" CssClass="combo" /&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Grupos&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadComboBox ID="ddlGroups" runat="server" CssClass="combo" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" /&gt;
                                      &lt;/td&gt;
                                      &lt;td&gt;Usuários&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadComboBox ID="ddlUsers" runat="server" CssClass="combo" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" /&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                              &lt;/table&gt;
                              &lt;asp:Panel runat="server" ID="Panel1" CssClass="rsAdvancedSubmitArea"&gt;
                                  &lt;div class="rsAdvButtonWrapper"&gt;
                                      &lt;asp:LinkButton CommandName="Insert" runat="server" ID="LinkButton2" CssClass="rsAdvEditSave"&gt;
                                                  &lt;span&gt;&lt;%# Container.Appointment.Owner.Localization.Save%&gt;&lt;/span&gt;
                                      &lt;/asp:LinkButton&gt;
                                      &lt;asp:LinkButton runat="server" ID="LinkButton3" CssClass="rsAdvEditCancel" CommandName="Cancel" CausesValidation="false"&gt;
                                                  &lt;span&gt;&lt;%# Container.Appointment.Owner.Localization.Cancel%&gt;&lt;/span&gt;
                                      &lt;/asp:LinkButton&gt;
                                  &lt;/div&gt;
                              &lt;/asp:Panel&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/AdvancedInsertTemplate&gt;
                  &lt;AdvancedEditTemplate&gt;
                      &lt;div class="rsAdvancedEdit rsAdvancedModal" style="position: relative; margin-right: -100px"&gt;
                          &lt;div class="rsModalBgTopLeft"&gt;&lt;/div&gt;
                          &lt;div class="rsModalBgTopRight"&gt;&lt;/div&gt;
                          &lt;div class="rsModalBgBottomLeft"&gt;&lt;/div&gt;
                          &lt;div class="rsModalBgBottomRight"&gt;&lt;/div&gt;
                          &lt;div class="rsAdvTitle"&gt;
                              &lt;h1 class="rsAdvInnerTitle"&gt;&lt;%# Container.Appointment.Owner.Localization.AdvancedEditAppointment %&gt;&lt;/h1&gt;
                              &lt;asp:LinkButton runat="server" ID="LinkButton4" CssClass="rsAdvEditClose"
                                  CommandName="Cancel" CausesValidation="false" ToolTip='&lt;%# Container.Appointment.Owner.Localization.AdvancedClose %&gt;'&gt;
                                      &lt;%# Container.Appointment.Owner.Localization.AdvancedClose%&gt;
                              &lt;/asp:LinkButton&gt;
                          &lt;/div&gt;
                          &lt;div class="rsAdvContentWrapper" style="background-color: #ffffff;"&gt;
                              &lt;table&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Sumário&lt;/td&gt;
                                      &lt;td colspan="3"&gt;
                                          &lt;asp:TextBox ID="txtSubject" runat="server" CssClass="textbox" Columns="60" Text='&lt;%# Bind("Subject") %&gt;' /&gt;&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Descrição&lt;/td&gt;
                                      &lt;td colspan="3"&gt;
                                          &lt;asp:TextBox ID="txtDescription" CssClass="textbox" Columns="60" runat="server" Text='&lt;%# Bind("Description") %&gt;'&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Inicío&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadDateTimePicker ID="RadDateTimePicker1" SelectedDate='&lt;%# Bind("Start") %&gt;' runat="server"&gt;&lt;/tk:RadDateTimePicker&gt;
                                      &lt;/td&gt;
                                      &lt;td&gt;Fim&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadDateTimePicker ID="RadDateTimePicker2" SelectedDate='&lt;%# Bind("End") %&gt;' runat="server"&gt;&lt;/tk:RadDateTimePicker&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Tipo&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadComboBox ID="RadComboBox1" runat="server" CssClass="combo" /&gt;
                                      &lt;/td&gt;
                                      &lt;td&gt;Sala&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadComboBox ID="ddlLocations" runat="server" CssClass="combo" /&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Grupos&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadComboBox ID="RadComboBox3" runat="server" CssClass="combo" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" /&gt;
                                      &lt;/td&gt;
                                      &lt;td&gt;Usuários&lt;/td&gt;
                                      &lt;td&gt;
                                          &lt;tk:RadComboBox ID="RadComboBox4" runat="server" CssClass="combo" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" /&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                      &lt;td&gt;Privado&lt;/td&gt;
                                      &lt;td colspan="3"&gt;
                                          &lt;asp:CheckBox runat="server" ID="CheckBox1" AutoPostBack="false" Checked="false" /&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                              &lt;/table&gt;
                              &lt;asp:Panel runat="server" ID="Panel2" CssClass="rsAdvancedSubmitArea"&gt;
                                  &lt;div class="rsAdvButtonWrapper"&gt;
                                      &lt;asp:LinkButton CommandName="Update" runat="server" ID="LinkButton5" CssClass="rsAdvEditSave"&gt;
                                              &lt;span&gt;&lt;%# Container.Appointment.Owner.Localization.Save%&gt;&lt;/span&gt;
                                      &lt;/asp:LinkButton&gt;
                                      &lt;asp:LinkButton runat="server" ID="LinkButton6" CssClass="rsAdvEditCancel" CommandName="Cancel" CausesValidation="false"&gt;
                                              &lt;span&gt;&lt;%# Container.Appointment.Owner.Localization.Cancel%&gt;&lt;/span&gt;
                                      &lt;/asp:LinkButton&gt;
                                  &lt;/div&gt;
                              &lt;/asp:Panel&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/AdvancedEditTemplate&gt;
              &lt;/tk:RadScheduler&gt;
  </code></pre>