Setting the RecurrenceEditor EndDate

Good evening,

I would love to set the RecurrenceEditor EndDate  and Occurrences to my desired values at startup. How can I change the default settings because the EndDate seems to be default to about 72 days from the CurrentDate while Occurrence is default to 10. I want to use lesser values and also make it readonly.

Thanks.

3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team July 25, 2017 11:52 AM UTC

Hi Charles        
 
Thank you for contacting Syncfusion support. 
   
We have prepared the sample to customize the end date picker and occurrence numeric value which can be viewed from the below link. 
 
<Code> 
$("#RecurrenceEditor").ejRecurrenceEditor({ 
    selectedRecurrenceType: 2, 
    create: "oncreate", 
    change: function (args) { 
        this.element.find("#endsonuntil").find("#" + this._id + "_daily").ejDatePicker("option", { value: ej.format(new Date(2017, 6, 27), this._datepattern(), this.model.locale) }); 
        this.element.find("#endsonuntil").find("#" + this._id + "_daily").ejDatePicker({ readOnly: true }); 
        this.element.find(".recurcount").ejNumericTextbox({ value: 5, readOnly: true }); 
    } 
}); 
</Code> 
 
Note: Above sample is made in JS platform for your reference. 
 
Regards, 
Karthigeyan 






CH Charles July 26, 2017 04:57 PM UTC

Thanks a lot. The sample pointed me in the right direction. 



KK Karthigeyan Krishnamurthi Syncfusion Team July 27, 2017 03:46 AM UTC

Hi Charles  
 
We are happy to hear that our solution has fulfilled your requirement. 
 
Regards, 
Karthigeyan 


Loader.
Up arrow icon