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

AngularJS version of Kendo UI: Templates

2 Answers 75 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Peter Terkildsen
Top achievements
Rank 1
Peter Terkildsen asked on 09 Dec 2014, 07:56 PM
Hi,

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

Sort by
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!
 
0
Peter Terkildsen
Top achievements
Rank 1
answered on 11 Dec 2014, 02:13 PM
Thank you - that was exactly what I needed :-)

Peter
Tags
Scheduler
Asked by
Peter Terkildsen
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Peter Terkildsen
Top achievements
Rank 1
Share this question
or