How to remove never in End (Repeat)
Hi Hari,
Greetings from Syncfusion Support.
We have checked your requirement “We need to remove the "never" list from the End drop-down” and we can achieve your requirement by modifying the data source of the dropdown list. Here we have used the popupOpen event to modify the datasource like the below code.
function
onPopupOpen(args) {
if (args.type === 'Editor') {
var
recurElement = document.querySelector('.e-recurrenceeditor');
var
endList = recurElement.ej2_instances[0].endType.dataSource;
if (endList.length === 3) {
var
newDatasource = [
{ text:
'Until', value:
'until' },
{ text:
'Count', value:
'count' },
];
recurElement.ej2_instances[0].endType.dataSource = newDatasource;
}
}
Sample: https://stackblitz.com/edit/4a3eli-fhvbrf?file=index.js
Kindly try the above solution and get back to us if you need any further assistance.
Regards,
Vengatesh