We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

After Date Change Event

Hi,

I need to catch new selected date after date change. Navigating event is triggers before the date or view navigation takes place on scheduler. But I need an event triggers after the date or view navigation takes place on scheduler. I can I do this ?


Regards


3 Replies

VD Vinitha Devi Murugan Syncfusion Team December 4, 2019 10:10 AM UTC

Hi mehmet, 
 
Syncfusion Greetings. 
 
You can get the start and end date of current date range by making use of actionComplete event with args.requestType viewNavigate and dateNavigate. For the same we have prepared the below sample, kindly refer it.  
 
  
 //To get the start and end dates of current view and current Date range 
  onActionComplete(args): void { 
    if ( args.requestType === "viewNavigate" || args.requestType === "dateNavigate") { 
      var currentViewDates = this.scheduleObj.getCurrentViewDates(); 
      var startDate = currentViewDates[0]; 
      var endDate = currentViewDates[currentViewDates.length - 1]; 
      console.log(startDate); 
      console.log(endDate); 
    } 
  } 
  
Kindly try with the above sample and let us know, if you need any further assistance on this. 
 
Regards,  
M.Vinitha devi 



MY mehmet yanbak December 4, 2019 10:57 AM UTC

Hi,

It works, thank you for your help.

Regards


VD Vinitha Devi Murugan Syncfusion Team December 5, 2019 06:18 AM UTC

Hi mehmet, 

Thanks for your update. 

You are most welcome 😊 

Regards, 
M.Vinitha devi 


Loader.
Live Chat Icon For mobile
Up arrow icon