RadScheduler MonthView Appointments won't wrap on some Time Zones in November

3 posts, 0 answers
  1. Mike
    Mike avatar
    5 posts
    Member since:
    Mar 2014

    Posted 31 Dec 2014 Link to this post

    Hi Telerik,

    I have a bizarre bug where RadScheduler won't properly wrap a multi-day appointment to the next week for some time zones in the month of November.  I've created a sample project that reproduces the issue.  I haven't gone thru the trouble of mapping out which time zones break the control, but more than a few do in my experimentation.  There are two Appointments - you can see the November appointment doesn't wrap when using "Pacific Standard Time", but the December appoint does wrap properly.  If you change the time zone to "US Mountain Standard Time", then everything works as expected.

    Here's the Default.aspx.cs:

    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Telerik.Web.UI;
     
    namespace SchedulerBug
    {
        public partial class Default : System.Web.UI.Page
        {
            class ATGAppointment
            {
                public int AppointmentId { get; set; }
                public string Subject { get; set; }
                public DateTime Start { get; set; }
                public DateTime End { get; set; }
            }
     
            private List<ATGAppointment> Appointments = new List<ATGAppointment>()
            {
                new ATGAppointment()
                {
                    AppointmentId = 1,
                    Subject = "Some multi-day appointment from 11/4/14 to 11/28/14",
                    Start = new DateTime(2014, 11, 4, 0, 0, 0),
                    End = new DateTime(2014, 11, 28, 11, 59, 0)
                },
                new ATGAppointment()
                {
                    AppointmentId = 2,
                    Subject = "Some multi-day appointment from 12/10/14 to 12/28/14",
                    Start = new DateTime(2014, 12, 10, 0, 0, 0),
                    End = new DateTime(2014, 12, 28, 11, 59, 0)
                }
            };
     
            protected void Page_Load(object sender, EventArgs e)
            {
                if (!this.IsPostBack)
                {
                    RadScheduler1.DataSource = this.Appointments;
                    RadScheduler1.DataBind();
     
                    RadScheduler1.SelectedDate = new DateTime(2014, 11, 1);
     
                    // Doesn't wrap in November month view
                    RadScheduler1.TimeZoneID = "Pacific Standard Time";
     
                    // Wraps when set to this time zone
                    //RadScheduler1.TimeZoneID = "US Mountain Standard Time";
                }
            }
        }
    }


    And the corresponding Default.aspx:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SchedulerBug.Default" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html>
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <div>
                <telerik:RadScheduler ID="RadScheduler1" runat="server" Width="850px" Height="100%"
                    DataKeyField="AppointmentId"
                    DataSubjectField="Subject"
                    DataStartField="Start"
                    DataEndField="End"
                    SelectedView="MonthView">
                </telerik:RadScheduler>
            </div>
        </form>
    </body>
    </html>

    I am using Telerik UI for ASP.NET AJAX 2014 Q3.

    Is this a known issue, and do you know of any work-arounds for this?

    Thanks,
    Mike Kolbly
     





  2. Mike
    Mike avatar
    5 posts
    Member since:
    Mar 2014

    Posted 31 Dec 2014 in reply to Mike Link to this post

    Here's a screenshot for November - the appointment goes from 11/4/2014 - 11/28/2014, but gets cut off on 11/8/2014
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 02 Jan 2015 Link to this post

    Hi Mike,

    This is a known bug that is already fixed for the Q3 2014 Service Pack item -RadScheduler multiple day appointments not shown correctly in MonthView in April 2014 when timezone is set.

    Unfortunately there is no workaround for the previous version so I will recommend you to upgrade to the latest version.

    Regards,
    Plamen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top