clone

Clones the scheduler event.

Parameters

options Object

Additional options passed to the SchedulerEvent constructor.

updateUid Boolean(default: false)

If you pass true the uid of the event will be updated.

Returns

kendo.data.SchedulerEvent the cloned scheduler event.

Example - clone the scheduler event

<script>
    var event = new kendo.data.SchedulerEvent({
        id: 1,
        title: "Task1",
        start: new Date(2013, 10, 11, 12),
        end: new Date(2013, 10, 11, 14)
    });

    var clone = event.clone();
</script>

Example - override start and end dates of the event

<script>
    var event = new kendo.data.SchedulerEvent({
        id: 1,
        title: "Task1",
        start: new Date("2013/4/4 12:00"),
        end: new Date("2013/4/4 14:00")
    });

    var clone = event.clone({
        start: new Date("2013/4/4 2:00"),
        end: new Date("2013/4/4 4:00")
    });
</script>
In this article
Not finding the help you need?