how to restrict recurrence rule, isAllDay and disable other options in new event

in my project i am using syncfusion schedule . i want to do following changes : 
1.disable all my "repeat" option except "daily"
2.allow "interval = 1" only in repeat daily.
3.allow "End = never" only
4.disable "is all day"
5. disable timezone field

Can you help me do the following changes.


1 Reply 1 reply marked as answer

AK Alagumeena Kalaiselvan Syncfusion Team October 7, 2020 02:32 PM UTC

Hi Shubham, 

Greetings from Syncfusion support! 

We have checked your reported editor window customizations  which are possible with Scheduler. we suggest to use popupOpen event and override the Scheduler class to achieve your case. Refer the below code for that. 
~/app.component.ts 
public onPopupOpen(args: PopupOpenEventArgs): void { 
    if (args.type == "Editor") { 
      (this.scheduleObj.eventWindow as any).recurrenceEditor.frequencies = [ 
        "daily" 
      ];    // To disable “repeat” option except “daily” 
      let end = (document.querySelector(".e-end-on-element") as any) 
        .ej2_instances[0];    // To allow “interval=1” only in repeat daily 
      end.dataSource = [{text: "Never", value: "never"}]; 
    } 
  } 
~/app.component.css 
.e-schedule-dialog .e-numeric.e-control-wrapper.e-input-group .e-input-group-icon{ 
  pointer-events: none; 
} 
.e-schedule-dialog .e-all-day-time-zone-row { 
  display: none;      // To disable Allday and Timezone options  
} 

Currently we are working on your requirement to allow “End = Never” and will share the details on tomorrow 8th October, 2020. 

Also, we have prepared a sample for your reference which can be get by the below link. 

Please try with shared sample and let us know, if you need further assistance. 

Regards 
Alagumeena.K 


Marked as answer
Loader.
Up arrow icon