How to disable adding event popup when empty scheduler cell is clicked?

I've created my own appointment adding modal. After adding appointment i can show added appointments on scheduler. When user come to on added appointment i show quickinfo about appointment details. But i want to disable adding event(it's appointment for me) that when the user clicked an empty cell.

I attached screenshots.

Thanks

Attachment: scheduler_dec179b.rar

1 Reply 1 reply marked as answer

PN Praveenkumar Narasimhanaidu Syncfusion Team May 21, 2021 07:17 AM UTC

Hi Tümer, 

Greetings from Syncfusion support..! 

We have validated your requirement “How to disable adding event popup when empty scheduler cell is clicked” and you can achieve this requirement using scheduler popupOpen event and below highlighted code snippet. We have prepared a sample for your reference which can be viewed from the following link. 
Index.ts 
  popupOpen: (argsPopupOpenEventArgs=> { 
    let isEmptyCell = 
      args.target.classList.contains('e-work-cells') || 
      args.target.classList.contains('e-header-cells'); // checking whether the cell is empty or not 
    if ((args.type === 'QuickInfo' || args.type === 'Editor') && isEmptyCell) { 
      args.cancel = true; 
    } 
  } 
 
Kindly try the above solution and get back to us if you need any further assistance. 

Regards, 
Praveenkumar 


Marked as answer
Loader.
Up arrow icon