Cannot read property 'recurrenceException' of undefined

4 posts, 0 answers
  1. Brad
    Brad avatar
    2 posts
    Member since:
    Jan 2016

    Posted 30 Apr Link to this post

    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.

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 02 May Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Brad
    Brad avatar
    2 posts
    Member since:
    Jan 2016

    Posted 02 May in reply to Vladimir Iliev Link to this post

    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" }
                        }
                    }
                }

  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 04 May Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready