Hi,
We have our own dialog box to edit appointments.
It works well except when you double click on the appointment, it is the syncfusion dialog box
but not our own dialog box.
How to fix this problem ?
Regards
Sorry but i don't want only cancel the double click action.
But cancel double click in empty cell and connect my own dialog box when user double click in appointment cell filled
Could you give me a sample code ?
Regards
|
popupOpen: function (args) {
if (args.type == "Editor") {
args.cancel = true;
isCell = args.target.classList.contains("e-work-cells");
var startElement = document.querySelector("#StartTime.start-time");
if (!startElement.classList.contains("e-datetimepicker")) {
new ej.calendars.DateTimePicker(
{ value: args.data.StartTime || new Date() },
startElement
);
} else {
startObj = startElement.ej2_instances[0];
startObj.value = args.data.StartTime;
startObj.dataBind();
}
var endElement = document.querySelector("#EndTime.end-time");
if (!endElement.classList.contains("e-datetimepicker")) {
new ej.calendars.DateTimePicker(
{ value: args.data.EndTime || new Date() },
endElement
);
} else {
endObj = endElement.ej2_instances[0];
endObj.value = args.data.EndTime;
endObj.dataBind();
}
dlgObj.show();
}
} |