Answer:
Yes, we can open an Appointment window with a single click by using oncellclick method. Refer to the code snippet.
EjsSchedule
ScheduleObj;
public async void OnCellClick(CellClickEventArgs args)
{
var cellData = await ScheduleObj.GetCellDetails(args.Element); //to get the current
cell details
ScheduleObj.OpenEditor(cellData, CurrentAction.Add); //to open the editor
on cell click
}
public async void OnEventClick(EventClickArgs
args)
{
var eventData
= await ScheduleObj.GetEventDetails(args.Element); //to get the current
appointment details
ScheduleObj.OpenEditor(eventData, CurrentAction.Save); //to open the editor
on event click
} |
Find the sample for to show the Add/Edit dialog with a single click in Scheduler from here.