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

Fade or dim previous events in schedule views

Thread ID:

Created:

Updated:

Platform:

Replies:

147499 Sep 13,2019 02:05 AM UTC Sep 16,2019 08:25 AM UTC React - EJ 2 3
loading
Tags: Schedule
Tony
Asked On September 13, 2019 02:05 AM UTC

In the schedule views. How can we has past events on the views be shaded or faded out a bit. Similar to how google cal does it?




Karthigeyan Krishnamurthi [Syncfusion]
Replied On September 13, 2019 09:22 AM UTC

 
Syncfusion greetings. 
 
Kindly refer the below links where past events are made as readonly.  
 
Regards, 
Karthi 



Tony
Replied On September 13, 2019 04:43 PM UTC

Thanks Karthi,   I do not want to make the events read-only.  I want the past events to have the styling shown in the example you shared and in the sample picture I provided..  Is there a way to do that?    

Karthigeyan Krishnamurthi [Syncfusion]
Replied On September 16, 2019 08:25 AM UTC

 
Thanks for the update 
 
We can achieve your requirement using eventRendered event which triggers on both initial and CRUD actions. 
 
onEventRendered(args) { 
    if (new Date() > args.data.StartTime) { 
      args.element.style.opacity = '0.5' 
    } 
  } 
 
Regards, 
Karthi 
 


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