Please help.
I receive the following error when adding an exception to the recurrence:
Object reference not set to an instance of an object.
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.Web.UI.RecurrenceRule.TryParse(String input, RecurrenceRule& rrule) +970
Telerik.Web.UI.Scheduling.AppointmentController.ExpandRecurrence(Appointment parent) +145
Telerik.Web.UI.Scheduling.AppointmentController.AddAppointmentAndExpand(Appointment appointment) +16
Telerik.Web.UI.RadScheduler.PerformDataBindingFromProvider(IEnumerable`1 providedAppointments) +127
Telerik.Web.UI.RadScheduler.PerformSelect() +156
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
Telerik.Web.UI.RadScheduler.EnsureDataBound() +12
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +63
Telerik.Web.UI.RadScheduler.CreateChildControls() +10
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +44
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
RadScheduler front-end: (I have the datarecurrenceparentkeyfield set as "MasterSeriesItemID")
Sample data:
XSL file:
I receive the following error when adding an exception to the recurrence:
Object reference not set to an instance of an object.
[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.Web.UI.RecurrenceRule.TryParse(String input, RecurrenceRule& rrule) +970
Telerik.Web.UI.Scheduling.AppointmentController.ExpandRecurrence(Appointment parent) +145
Telerik.Web.UI.Scheduling.AppointmentController.AddAppointmentAndExpand(Appointment appointment) +16
Telerik.Web.UI.RadScheduler.PerformDataBindingFromProvider(IEnumerable`1 providedAppointments) +127
Telerik.Web.UI.RadScheduler.PerformSelect() +156
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
Telerik.Web.UI.RadScheduler.EnsureDataBound() +12
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +63
Telerik.Web.UI.RadScheduler.CreateChildControls() +10
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +44
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
RadScheduler front-end: (I have the datarecurrenceparentkeyfield set as "MasterSeriesItemID")
<
telerik:RadScheduler
runat
=
"server"
ID
=
"RadScheduler1"
width
=
"700px"
height
=
"565px"
Skin
=
"Office2007"
overflowbehavior
=
"Scroll"
shownavigationpane
=
"true"
timezoneoffset
=
"00:00:00"
selectedview
=
"MonthView"
daystarttime
=
"08:00:00"
dayendtime
=
"20:29:59"
datasourceid
=
"Appointments_DS"
datakeyfield
=
"Key"
datastartfield
=
"EventDate"
dataendfield
=
"EndDate"
datasubjectfield
=
"Title"
datarecurrencefield
=
"RecurrenceRule"
datarecurrenceparentkeyfield
=
"MasterSeriesItemID"
customattributenames
=
"Description, Category, Location, Event_Cancelled, RecurrenceData"
allowdelete
=
"false"
allowedit
=
"false"
allowinsert
=
"false"
showviewtabs
=
"true"
>
<
monthview
userselectable
=
"true"
visibleappointmentsperday
=
"2"
/>
<
TimelineView
UserSelectable
=
"false"
/>
<
appointmenttemplate
>
<
asp:literal
id
=
"ApptBtn"
runat
=
"server"
text='<%# (Eval("Subject").ToString().Length >= 16)
? Eval("Subject").ToString().Substring(0, Eval("Subject").ToString().IndexOf(" ")) + "..."
: Eval("Subject") %>'></
asp:literal
>
</
appointmenttemplate
>
</
telerik:RadScheduler
>
Sample data:
<
Appointment
>
<
Key
>171</
Key
>
<
Title
>Policy Committee</
Title
>
<
Location
>Room 100 (55 Somewhere Street)</
Location
>
<
EventDate
>2011-01-01T10:30:00</
EventDate
>
<
StartDateString
>1/1/2011</
StartDateString
>
<
EndDate
>2094-03-04T10:30:00</
EndDate
>
<
Description
>Meeting Description
</
Description
>
<
Category
>Committee Meeting</
Category
>
<
Event_Cancelled
>0</
Event_Cancelled
>
<
fRecurrence
>1</
fRecurrence
>
<
RecurrenceData
><
recurrence
><
rule
><
firstDayOfWeek
>su</
firstDayOfWeek
><
repeat
><
monthlyByDay
th
=
"TRUE"
weekdayOfMonth
=
"first"
monthFrequency
=
"1"
/></
repeat
><
repeatForever
>FALSE</
repeatForever
></
rule
></
recurrence
></
RecurrenceData
>
<
RecurrenceRule
>
<![CDATA[
DTSTART:20110101T103000Z
DTEND:20110101T103000Z
RRULE:FREQ=MONTHLY;UNTIL=20940304T103000Z;INTERVAL=1;BYSETPOS=1;BYDAY=TH;
]]>
</
RecurrenceRule
>
<
fAllDayEvent
>0</
fAllDayEvent
>
<
EventType
>1</
EventType
>
<
Modified
>2010-12-03T13:13:06</
Modified
>
</
Appointment
>
<
Appointment
>
<
Key
>172</
Key
>
<
Title
>Policy Committee</
Title
>
<
Location
>Room 100 (55 Somewhere Street)</
Location
>
<
EventDate
>2011-12-01T10:30:00</
EventDate
>
<
StartDateString
>12/1/2011</
StartDateString
>
<
EndDate
>2011-12-01T10:30:00</
EndDate
>
<
Description
>Meeting Description
</
Description
>
<
Category
>Committee Meeting</
Category
>
<
Event_Cancelled
>1</
Event_Cancelled
>
<
fRecurrence
>1</
fRecurrence
>
<
RecurrenceData
>Every 1 month(s) on the first Thursday</
RecurrenceData
>
<
RecurrenceRule
>
<![CDATA[
DTSTART:20111201T103000Z
DTEND:20111201T103000Z
RRULE:UNTIL=20111201T103000Z;BYSETPOS=-1;
]]>
</
RecurrenceRule
>
<
fAllDayEvent
>0</
fAllDayEvent
>
<
EventType
>4</
EventType
>
<
RecurrenceID
>2011-12-01T10:30:00</
RecurrenceID
>
<
MasterSeriesItemID
>171</
MasterSeriesItemID
>
<
Modified
>2010-12-03T14:41:34</
Modified
>
</
Appointment
>
XSL file:
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
xsl:stylesheet
version
=
"1.0"
xmlns:xsl
=
"http://www.w3.org/1999/XSL/Transform"
>
<
xsl:template
match
=
"Appointments"
>
<
Appointments
>
<
xsl:apply-templates
select
=
"Appointment"
/>
</
Appointments
>
</
xsl:template
>
<
xsl:template
match
=
"Appointment"
>
<
Appointment
>
<
xsl:attribute
name
=
"Key"
>
<
xsl:value-of
select
=
"Key"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"MasterSeriesItemID"
>
<
xsl:value-of
select
=
"MasterSeriesItemID"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"Title"
>
<
xsl:value-of
select
=
"Title"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"EventDate"
>
<
xsl:value-of
select
=
"EventDate"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"EndDate"
>
<
xsl:value-of
select
=
"EndDate"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"Category"
>
<
xsl:value-of
select
=
"Category"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"Location"
>
<
xsl:value-of
select
=
"Location"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"Description"
>
<
xsl:value-of
select
=
"Description"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"Event_Cancelled"
>
<
xsl:value-of
select
=
"Event_Cancelled"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"RecurrenceData"
>
<
xsl:value-of
select
=
"RecurrenceData"
/>
</
xsl:attribute
>
<
xsl:attribute
name
=
"RecurrenceRule"
>
<
xsl:value-of
select
=
"RecurrenceRule"
/>
</
xsl:attribute
>
</
Appointment
>
</
xsl:template
>
</
xsl:stylesheet
>