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

kendoRecurrenceEditor schedule editor. Read only or disabled?

1 Answer 225 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 18 Nov 2014, 05:30 PM
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

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 20 Nov 2014, 09:52 AM
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!
 
Tags
Scheduler
Asked by
Bill
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or