I am creating activities on the Client Side. I would also like to add some CustomRules to the appointment style, but after going through the various javascript files, I don't see the capabillity to add/change the appointment.style.CustomRules from the client side. Did I possibly miss this functionality?
Hello robbin2c,
Let me know if you need further information about this question.
Thank you for posting on Infragistics forum.
You can use appointment “Style” property to add your custom CSS rules like this:
protected void WebScheduleInfo1_DataBinding(object sender, System.EventArgs e)
{ //color code appointment
AppointmentsSubsetCollection appts = WebScheduleInfo1.GetAppointmentsForDate(WebScheduleInfo1.ActiveResource, WebScheduleInfo1.ActiveDayUtc);
foreach(Appointment cApp in appts)
{
cApp.Style.CustomRules = "background-color:#FFEE24 !important;";
}
You can read more information about appointment styling in the following thread - http://community.infragistics.com/forums/t/3387.aspx
You can style the schedule resources by using CSS styles too like shown here - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/WebSchedule_Styling_Active_and_Inactive_Resources.html
This article describes how to style the “WebMonthView” with CSS cascade - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/WebAppStylist_Styling_Specific_Components_WebMonthView.html
The same for “WebDayView” can be read here - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/WebAppStylist_Styling_Specific_Components_WebDayView.html
And for “WebCalendarView” here - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2010.3/CLR4.0/html/WebAppStylist_Styling_Specific_Components_WebCalendarView.html
Running samples that shows how you can style the “WebSchedule” control can be accessed here - http://samples.infragistics.com/aspnet/Samples/WebSchedule/Style/WebDayView%20Styles/Default.aspx?cn=schedule&sid=3d429d82-bce5-4b3b-ab79-e918b02c0cf3
And here - http://samples.infragistics.com/aspnet/Samples/WebSchedule/Style/WebMonthViewStyles/Default.aspx?cn=schedule&sid=3580aa0f-f378-4066-aa11-68e7f66a9a2a
Let me know if you need further assistance with this question.