VIEWDIRECTIVE

Hi,

I have a schedule with 3 ViewDirective: Week, Month, Agenda.

Week: I want to add and modify data

 
Month: I want only edit existing data. I want to avoid insert operation

Is it possible?
Thanks Alex


3 Replies 1 reply marked as answer

PN Praveenkumar Narasimhanaidu Syncfusion Team February 18, 2021 12:08 PM UTC

Hi Alex, 

Greetings from Syncfusion support..! 

We can achieve your requirement with the help of navigating event and prepared sample for your reference which can be viewed from following link. 


Index.js 
  onNavigate(args) { 
    if (args.currentView === "Month") { 
      this.scheduleObj.eventSettings.allowAdding = false; 
    } else { 
      this.scheduleObj.eventSettings.allowAdding = true; 
    } 
  } 


Kindly try the above solution and get back to us if you need any further assistance. 

Regards, 
Praveenkumar. 


Marked as answer

AL Alex February 18, 2021 01:24 PM UTC

Hi Praveenkumar,

thanks for your help. I solved my problem with your portion of code
Have a nice day


NR Nevitha Ravi Syncfusion Team February 19, 2021 05:00 AM UTC

Hi Alex, 

You are most welcome..! We are glad that our provided solution helped you, please get back to us if you need any further assistance. 

Regards, 
Nevitha 


Loader.
Up arrow icon