Disable "Edit Recurring Item" dialog for some events

8 posts, 1 answers
  1. Myron
    Myron avatar
    6 posts
    Member since:
    Aug 2014

    Posted 16 Feb 2015 Link to this post

    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?
  2. Answer
    Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 18 Feb 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Myron
    Myron avatar
    6 posts
    Member since:
    Aug 2014

    Posted 18 Feb 2015 in reply to Vladimir Iliev Link to this post

    Thank you for your response.  I would be very interested in being informed when this feature has been added.
  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 13 Mar 2015 Link to this post

    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!
     
  6. Myron
    Myron avatar
    6 posts
    Member since:
    Aug 2014

    Posted 22 Apr 2015 in reply to Vladimir Iliev Link to this post

    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?
  7. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 23 Apr 2015 Link to this post

    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!
     
  8. Carlos
    Carlos avatar
    11 posts
    Member since:
    Apr 2015

    Posted 20 Jul Link to this post

    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.)

  9. Carlos
    Carlos avatar
    11 posts
    Member since:
    Apr 2015

    Posted 20 Jul in reply to Carlos Link to this post

    .Editable(m => m.EditRecurringMode(SchedulerEditRecurringMode.Occurrence))

     

    !!!!!!! 

Back to Top
Kendo UI is VS 2017 Ready