How to remove "Never" option in Repeat dropdown in Rule Generator

Hi Team,

I wanted to remove "Never" Option in Repeat dropdown in RRULE Rule Generator. I have checked other support tickets, It seems to achievable through popupOpen attribute.

But, I did not have popup to open in my setup. We are showing the Rule Generator in the form. So, I wanted to remove the "Repeat" option in the Onload.


Please do the needful.

Thanks,

Gopinath


5 Replies 1 reply marked as answer

VM Vengatesh Maniraj Syncfusion Team June 3, 2022 03:35 AM UTC

Hi Gopinath,


You can remove the Never option by making use of the frequencies option. Please refer to the below for more references.


https://ej2.syncfusion.com/react/documentation/schedule/recurrence-editor/#customizing-the-repeat-type-option-in-editor


Regards,

Vengatesh 



GP Gopinath Periyasamy June 3, 2022 07:59 AM UTC

Hi Vengatesh,


We are using "RecurrenceEditorComponent" in our code. So, Please help on this component.

Please check the below code:




RM Ruksar Moosa Sait Syncfusion Team June 6, 2022 01:16 PM UTC

Hi Gopinath,


We have checked on your shared code and prepared a sample to remove the Never option from the recurrence dropdown by using the property frequencies like the below code.


frequencies = [ 'daily''weekly''monthly''yearly'];


<RecurrenceEditorComponent id='RecurrenceEditor' frequencies={this.frequencies} value={this.recRule} ref={t => this.recObject = t} ></RecurrenceEditorComponent>


Sample: https://stackblitz.com/edit/react-ycwwuu-lskvxn?file=index.js,index.html


Kindly try the above sample and let us know if you need any assistance.


Regards,

Ruksar Moosa Sait



Marked as answer

GP Gopinath Periyasamy June 7, 2022 07:05 AM UTC

Thank you! Its working!



SK Satheesh Kumar Balasubramanian Syncfusion Team June 8, 2022 02:04 PM UTC

Hi Gopinath,

Thanks for the update.

We are happy that your problem has been resolved now.

Regards,

Satheesh Kumar B


Loader.
Up arrow icon