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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Energize the special date of the calendar

Thread ID:

Created:

Updated:

Platform:

Replies:

144200 Apr 24,2019 01:47 PM UTC Apr 26,2019 01:29 PM UTC React - EJ 2 3
loading
Tags: Calendar
TOKO FIDELE
Asked On April 24, 2019 01:48 PM UTC

Hello I use the component Calendar: special date. https://ej2.syncfusion.com/react/demos/#/material/calendar/special-dates


however i will like in the event change that when i change a date in my calendar, the event renderDayCell  is called to change the special dates.

Thanks in advance and  regards, 


Ashokkumar Balasubramanian [Syncfusion]
Replied On April 25, 2019 10:50 AM UTC

Hi Toko Fidele 
 
Our calendar component, we were able identify the calendar input changes using change event. And, able to identify each day cell rendering process in calendar by using renderDayCell event. These two events are differed and there is no unique process for those events. So, could you please let us know, why you are expecting the renderDayCell event for change the special dates in calendars and update your exact use case of your scenario. This would be more helpful to provide the suggestion for your requirement and resolve the problem at earliest. 
 
Regards, 
Ashokkumar B.  


TOKO FIDELE
Replied On April 25, 2019 01:29 PM UTC

Hello Ashokkumar Balasubramanian. 

I would like to make the special date dynamic based on the choice of a date in the calendar, a random function is triggered and two-day referrals that will be considered the next special date.

 Example:  days 11 and 13 are selected.




When the user chooses one day, for example 15, the random function is triggered and returns two days: 20 and 26. these two days are selected in the calendar

and the other two days (11 and 13) are deselected



Thanks in advance and  regards,


Ashokkumar Balasubramanian [Syncfusion]
Replied On April 26, 2019 01:29 PM UTC

Hi Toko Fidele, 
 
As per your requested customization, we have used change and renderDayCell event to add the special dates on each day selection. Please check the below sample.  
 
 
In the above sample, we have added the special dates icon to the 5 and 10 date value from the selected date value. You can change the calculation for rendering the special dates based on your application needs. 
 
Regards, 
Ashokkumar B. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon