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

Destroy doesn't work fully

1 Answer 107 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 31 Jul 2013, 11:05 PM
Following the SDK example on a fully configured scheduler with 3 views (day, month, agenda) and bound remote data:

var scheduler = $("#scheduler").data("kendoScheduler");
scheduler.destroy();

This seems to only destroy the "views"... but the Day|Month|Agenda buttons as well as the date picker and outer container remain.  I would expect the destroy() method to destroy everything properly.

Is there something I am missing?





1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 01 Aug 2013, 06:05 AM
Hello Aaron,

As described in the documentation and similar to the behavior of the other widgets,  the destroy method does not remove the DOM of the scheduler. It detaches all event handlers and removes jQuery.data attributes as well as call child widgets destroy methods. However, note that parts of the DOM structure of the widget can also be automatically removed during this process.

Regards,
Rosen
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
Aaron
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or