I do not want to allow users to select recurring events when creating new events. Therefore, I would like to edit the template, so that this option is not available.
Does anyone have a code example of how to do this in AngularJS?
Regards,
Peter Terkildsen
2 Answers, 1 is accepted
0
Georgi Krustev
Telerik team
answered on 11 Dec 2014, 01:39 PM
Hello Peter,
If you would like to disable only recurrence editor (the one that allows to setup recurring event), then you can do this in the edit event handler:
function edit(e) {
var editor = e.container.find("[data-container-for=recurrenceRule]");
// add recurrence editor label
// hide both label and editor
editor.add(editor.prev()).hide();
}
Note that this approach is applicable to Angular.js too. I would suggest you check this help topic which explains how to wire the widget's events.
Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!