AngularJS version of Kendo UI: Templates

3 posts, 0 answers
  1. Peter Terkildsen
    Peter Terkildsen avatar
    16 posts
    Member since:
    Mar 2010

    Posted 09 Dec 2014 Link to this post

    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. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3748 posts

    Posted 11 Dec 2014 Link to this post

    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!
     
  3. Peter Terkildsen
    Peter Terkildsen avatar
    16 posts
    Member since:
    Mar 2010

    Posted 11 Dec 2014 in reply to Georgi Krustev Link to this post

    Thank you - that was exactly what I needed :-)

    Peter
Back to Top