This is a migrated thread and some comments may be shown as answers.

CSS Class for Recurring Events

2 Answers 70 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 04 Oct 2010, 02:17 PM
For a project, I need to color code the events based on resources.  I set the cssClass for the events that needed to be changed.  This worked great for regular events, but did not work at all for recurring events.  Any thoughts?

David

2 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 06 Oct 2010, 12:51 PM
Hello David,

You can set the CssClass property in AppointmentCreated event which will occur for occurrences as well.

I hope this helps.

Kind regards,
Veronica MIlcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
David
Top achievements
Rank 1
answered on 06 Oct 2010, 12:55 PM
Hello Veronica,

I actually tried the Appointment Created event, but it did not help.  I did find a solution though in the interim:

1) Create a custom Resource called Color
2) Add this code to the HTML for the RadScheduler

<

 

ResourceStyles>

 

 

    <telerik:ResourceStyleMapping Type="Color" Text ="Green" ApplyCssClass="rsCategoryGreen" />

 

 

    <telerik:ResourceStyleMapping Type="Color" Text ="Pink" ApplyCssClass="rsCategoryRed" />

 

 

</ResourceStyles>

Then it works.  The appointment created fires once per appointment, not once per occurence in a recurring event.

David

 

Tags
Scheduler
Asked by
David
Top achievements
Rank 1
Answers by
Veronica
Telerik team
David
Top achievements
Rank 1
Share this question
or