This is a migrated thread and some comments may be shown as answers.
Recurrence series bug
5 Answers 57 Views
This is a migrated thread and some comments may be shown as answers.
Francois
Top achievements
Rank 1
Francois asked on 11 Feb 2014, 08:44 PM
While using the scheduler without a web service (so with an array/empty datasource) and setting recurrence rules, the component displays the recurrence icon only for the first event in the series and does not ask if we want to edit the occurrence or the series when trying to edit the other entries. Editing such an entry and clicking save then throws that error: Uncaught TypeError: Cannot read property 'dirty' of undefined.

To verify if my code was the culprit I just took one of the samples and removed the dataSource and it did the same thing.

5 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 13 Feb 2014, 08:59 AM
Hello Francois,

This could be caused when the defined events do not have specified ids. Here is an example of using incorrectly specified scheduler events. When an id is defined, the occurrence series is rendered correctly. Check the updated jsBin demo.

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Francois
Top achievements
Rank 1
answered on 13 Feb 2014, 02:43 PM
I see, but even in the updated jsbin (the one with the id) If I add a new event (by double clicking the calendar) and set a recurrence rule it will do the same thing as the example without an id. Thinking about it I remember realizing that when I exported the data from the calendar all ids were 0, it it possible that manually created events don't get an id assigned?
0
Georgi Krustev
Telerik team
answered on 13 Feb 2014, 05:29 PM
Hello Francois,

Your observation is absolutely right. The data source creates data items with default id, which is 0 by default, and either the remote server or the developer (when local data is used) are responsible for proper id generation. 

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Francois
Top achievements
Rank 1
answered on 13 Feb 2014, 07:47 PM
I understand, but could you please point me in the direction of a sample or documentation page on how to generate ids when creating events?

I can't seem to find the right way of doing it, my attempts so far lead me to put a function for dataSource.transport.create that add the id, but it doesn't seem like it's sticking around, on the next update if I check my event it doesn't have n id anymore.
0
Georgi Krustev
Telerik team
answered on 17 Feb 2014, 09:30 AM
Hello again Fransois,

One possible solution is to use the save event of the widget. There you can check whether you will need to set id or not. Check the jsBin demo and let me know if you have any questions.

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