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

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

2 Answers 50 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 31 Dec 2014, 10:51 PM
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 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 31 Dec 2014, 10:56 PM
Here's a screenshot for November - the appointment goes from 11/4/2014 - 11/28/2014, but gets cut off on 11/8/2014
0
Plamen
Telerik team
answered on 02 Jan 2015, 09:21 AM
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.

 
Tags
Scheduler
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or