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:
And the corresponding Default.aspx:
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
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>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<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