kendoRecurrenceEditor schedule editor. Read only or disabled?

2 posts, 0 answers
  1. Bill
    Bill avatar
    7 posts
    Member since:
    Jun 2013

    Posted 18 Nov 2014 Link to this post

    Hi there.

    I'm using the kendoRecurrenceEditor control to generate a form for allowing users to create and edit a single recurrence rule. This works fine but what I need now is a way to make the form read only or disabled.

    I'm executing the code in the JavaScript like this (with some Razor syntax mixed in):

    $("#recurrence").kendoRecurrenceEditor({
        uid: "BillTest1",
        date: new Date("@DateTime.Now"),
        dataSource: [
            {
                id: 1,
                start: new Date("@Model.Start"),
                end: new Date("@Model.End"),
                title: "@Model.Title"
            }]
    });

    I want to maintain the way the editor puts the appropriate controls on the page, but once it's all laid out I don't want the user to be able to change things. 

    Is there a way to do this?

    Many thanks,
    Bill
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 20 Nov 2014 Link to this post

    Hello Bill,

    The RecurrenceEditor was designed to be used in the context of the Scheduler widget. That being said, it does not support disable / read-only mode. What I would suggest you is to hide the widget if recurrence events are not allowed.

    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. Kendo UI is VS 2017 Ready
Back to Top