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

Disable "Edit Recurring Item" dialog for some events

7 Answers 679 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Myron
Top achievements
Rank 1
Myron asked on 16 Feb 2015, 05:43 PM
We are using the Kendo Scheduler control to display a merged calendar containing events (appointments) for the current user as well as for other users.  The user is allowed to modify appointments that they "own" but cannot modify other users' appointments. We use the "edit" event to check on ownership of the appointment and prevent modification if it is not owned by the current user.  However, for recurring appointments we still see the "Edit current occurrence" / "Edit the series" popup dialog even if the user doesn't own the appointment.  Is there any way to prevent this dialog from appearing for appointments not owned by the user?
Paul
Top achievements
Rank 1
commented on 12 May 2021, 12:01 AM

Is there a way to dynamically toggle the editRecurringMode based on certain conditions associated with the event? I.E. the title is "foobar" therefore dblclicking those events forces the edit to be "series" otherwise use the "dialog" prompt. Thanks!

7 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 18 Feb 2015, 11:05 AM
Hi Myron,

Currently the Recurrence confirmation dialog cannot be disabled, however we are planning such feature for Q1 or Q2 2015 release (for updates on the matter you can regularly check our RoadMap).

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Myron
Top achievements
Rank 1
answered on 18 Feb 2015, 10:09 PM
Thank you for your response.  I would be very interested in being informed when this feature has been added.
0
Vladimir Iliev
Telerik team
answered on 13 Mar 2015, 01:49 PM
Hi Myron,

This feature is now implemented on our side and it will be shipped with next official release of Kendo UI (2015 Q1 release), expected to be available to the end of March. 

The new option is called "editRecurringMode" and will be available under the "editable" option of the scheduler - please check the example configuration below:

var scheduler = $("#scheduler").kendoScheduler({
    date: new Date("2013/6/14"),
    editable: {
        editRecurringMode: "occurrence" // - directly create exception
        //editRecurringMode: "series" - directly edit the series
        //editRecurringMode: "dialog" - default, shows the regular dialog
    },

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Myron
Top achievements
Rank 1
answered on 22 Apr 2015, 09:14 PM
Thank you for the information regarding this update to the Kendo Scheduler control.  It will help in some of our situations, but I'm not sure this meets the needs I had mentioned in my original post.  I need to be able to disable the popup for some of the events that appear in the scheduler but allow it for others, depending on the properties of the event (i.e. allow editing instances/recurrences for my appointments but disable it when I have selected other people's appointments).  Is there a way to use this new functionality that will meet my needs? Can I turn off the dialog by default but then display it (ex. using code) when "my" appointments are selected?
0
Vladimir Iliev
Telerik team
answered on 23 Apr 2015, 08:13 AM
Hello Myron,

Using the new option you can achieve the desired behavior by utilizing the "edit" event of the Scheduler. For more information you can check the event in scheduler API:

e.g.:
edit: function(e) {
  if (e.event.title === "Interview") {
      e.preventDefault();
  }
}

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Carlos
Top achievements
Rank 1
answered on 20 Jul 2016, 02:17 PM

Hiiii !! How can I disable "Edit Recurring Item" with Razor????

or Javascript but maintaining the razor code...

 

01.(Html.Kendo().Scheduler<ControlAPPCC.Models.ViewModels.EventViewModel>()
02.    .Name("scheduler")
03.    .Date(DateTime.Now)
04.    .StartTime(new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 8, 0, 0))
05.    .EndTime(new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 19, 0, 0))
06.    .Height(600)
07.    .Editable(SchedulerEditRecurringMode.Occurrence) ?????
08.    .Views(views =>
09.    {
10.        views.DayView();
11.        views.WeekView(weekView => weekView.Selected(true));
12.        views.MonthView();
13.    })
14.    .Timezone("Etc/UTC")
15.     
16.            .Events(e =>
17.            {
18.                e.Edit("onEdit");
19.                 
20.            })
21.    .Resources(resource =>
22.    {
23.        resource.Add(m => m.Color)
24.        .Title("color")
25.        .DataTextField("Text")
26.        .DataValueField("Color")
27.        .DataColorField("Color")
28.        .BindTo(new[] {
29.            new { Text = "Default", Color = "#51A0ED" } ,
30.            new { Text = "Urgente", Color = "#FF0000"},
31.            new { Text = "Recordatorio", Color = "#56ca85"},
32.            new { Text = ControlAPPCC.Resources.Label.Temperature, Color = "#FFBF00" } ,
33.            new { Text = ControlAPPCC.Resources.Label.Cleaning, Color = "#F5A9D0" } ,
34.            new { Text = ControlAPPCC.Resources.Label.Pest, Color = "#82FA58" } ,
35.            new { Text = ControlAPPCC.Resources.Label.Chlorine, Color = "#58D3F7" },       
36.        });
37.    })
38.    .DataSource(d => d
39.        .Model(m =>
40.        {
41.            m.Id(f => f.EventId);
42.            m.Field(f => f.Title).DefaultValue("No title");
43.            
44.        })
45.        .Read("Events_Read", "Scheduler")
46.        .Create("Events_Create", "Scheduler")
47.        .Destroy("Events_Destroy", "Scheduler")
48.        .Update("Events_Update", "Scheduler")
49.        
50.    )
51.)

0
Carlos
Top achievements
Rank 1
answered on 20 Jul 2016, 02:47 PM
.Editable(m => m.EditRecurringMode(SchedulerEditRecurringMode.Occurrence))

 

!!!!!!! 

Tags
Scheduler
Asked by
Myron
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Myron
Top achievements
Rank 1
Carlos
Top achievements
Rank 1
Share this question
or