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

Cannot read property 'recurrenceException' of undefined

3 Answers 428 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 30 Apr 2016, 10:07 PM

1. Creating events by adding them to the schedulerDataSource programatically

2. Everything works, except recurring events

3. As soon as a recurring event exists, all events are messed up - displayed in wrong time slots, and remaining calendar events wont display at all.

 

Exception is:

kendo.all.js line 61287

Uncaught TypeError: Cannot read property 'recurrenceException' of undefined

_addExceptionDate: function(e) {
                var t = e.start
                  , n = this.reader.timezone
                  , i = this.get(e.recurrenceId)
                  , r = i.recurrenceException || "";
                L.isException(r, t, n) || i.set(se, r + L.toExceptionString(t, n))
            }

 

The offending line is:

 r = i.recurrenceException || "";

 

i is the Recurrence ID of the Event.

i cannot have a child property, from what I see, called recurrenceException.  Why wouldnt r = this.get(e.recurrenceException)?

 

Looking for a solution - this is a time sensitive project (of course) and this one issue is holding up everything else from being delivered; all of the remaining functions and features are great and working, so I think I have a grasp on it, but this one is not working.

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 02 May 2016, 08:34 AM
Hi Brad,

I already answered to this query in duplicated support ticket created by you - #1031294. Please keep in mind that it is highly recommended that you keep related questions in one support thread or a forum post, so that we can easily keep track of your support history and provide better answers in a shorter time.

For convenience I included the ticket answer below:


From the provided information it seems that you initialize the Scheduler without "dataSource.schema" definition. Please note that adding "dataSource.schema.model" option with all fields described is required for correct operation of the Scheduler when editing events is enabled or you need to render recurring events. Could you please try to add this option to the dataSource and let us know of the result?


Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Brad
Top achievements
Rank 1
answered on 02 May 2016, 09:19 PM

I already have that information populated, same problem:

 

dataSource: ds,
            schema: {
                model: {
                    id: "id",
                    fields: {
                        id: { from: "id", type: "string" },
                        title: { from: "title", defaultValue: "No Title", validation: { required: true } },
                        start: { type: "date", from: "start", validation: { required: true } },
                        end: { type: "date", from: "end", validation: {required: true } },
                        startTimezone: { from: "StartTimezone" },
                        endTimezone: { from: "EndTimezone" },
                        description: { from: "Description" },
                        recurrenceId: { from: "recurrenceId" },
                        recurrenceRule: { from: "recurrenceRule" },
                        recurrenceException: { from: "recurrenceException" },
                        ownerId: { from: "ownerId", defaultValue: 1 },
                        program: { from: "program" },
                        isAllDay: { type: "boolean", from: "IsAllDay" }
                    }
                }
            }

0
Vladimir Iliev
Telerik team
answered on 04 May 2016, 07:54 AM
Hi Brad,

From this point I would need runable project (demo) where the issue is reproduced. Could you please provide one, for example in Kendo UI Dojo?

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Brad
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Brad
Top achievements
Rank 1
Share this question
or