Dear Customer,
Greetings from Syncfusion.
Please use the below code example to achieve your requirement.
popupOpen: function (args) {
if (args.type === 'Editor') {
var dialogObj = args.element.ej2_instances[0];
dialogObj.buttons[1].buttonModel.isPrimary = false;
var statusElement = args.element.querySelector('#EventType');
if (!statusElement.classList.contains('e-autocomplete')) {
var autoCompleteObject = new ej.dropdowns.AutoComplete({
placeholder: 'Select a status', value: statusElement.value,
dataSource: ['New', 'Requested', 'Confirmed']
});
autoCompleteObject.appendTo(statusElement);
statusElement.setAttribute('name', 'EventType');
}
var startElement = args.element.querySelector('#StartTime');
if (!startElement.classList.contains('e-datetimepicker')) {
new ej.calendars.DateTimePicker({ value: new Date(startElement.value) || new Date() }, startElement);
}
var endElement = args.element.querySelector('#EndTime');
if (!endElement.classList.contains('e-datetimepicker')) {
new ej.calendars.DateTimePicker({ value: new Date(endElement.value) || new Date() }, endElement);
}
}
},
Regards,
Karthi