Hi,
I have a strange behavior in my schedule's modal. I would undestand if it's correct and If I can change this feature.
My code:
async onPopupOpen(args) {
if (args.type === "Editor") {
let { calendarShiftArray , shiftStatusArray, selectedShift, isCalendarPlan} = this.state;
var startTimeElement = args.element.querySelector("#startTime").ej2_instances[0];
var subjectElement = args.element.querySelector("#subject");
var endTimeElement = args.element.querySelector("#endTime").ej2_instances[0];
if (isCalendarPlan) {
subjectElement.disabled = true;
startTimeElement.readonly = true;
endTimeElement.readonly = true;
}
So if my calendar is planned (isCalendarPlan === true) I want to disable subject (turno) , startTime (inizio) and endTime (Fine)
With the setting shown above (<obj>.readonly = true) I can't edit the load date. I can't click on icon number 2 and 3 ( the datepicker and timepicker doesn't appear)
But When I click on icon 4 ( X appears only when mouse is on the object) the reset command works correctly.
I want to avoid this behavior.
Thanks Alex