Hi Marco,
Greetings from Syncfusion Support.
We suspect that your requirement is closing the window after certain period of time. In the following sample we have opened the editor window on external button click and close it automatically after 5 seconds if user doesn’t create event or close the window.
onSubmit: function() {
let scheduleObj = document.getElementById("Schedule").ej2_instances[0];
let cellData = {
startTime: new Date(2018, 5, 4, 10, 0),
endTime: new Date(2018, 5, 4, 11, 0)
};
scheduleObj.openEditor(cellData, "Add");
setTimeout(function() {
var obj = document.getElementsByClassName("e-schedule-dialog")[0]
.ej2_instances[0];
obj.hide();
}, 5000);
} |
Please clarify us with more details like use-case scenario, image depicting your requirement if we misunderstood your query.
Regards,
Nevitha