Hello,
I am using .NET 2.0 . i have used WebMonthview.WebDayView.WebWeekView and WebCalenderView controls.In case of Month week and Day controls i can show various appointments of an employee by using different style sheet classes.
For example:
On a certain day an Employee is out of office from 9 am to 11 am and in Office from 11am to 6 am.So in Day view i can show the period 9-11 am by applying CSS class "Absence" and the 11-6 period by applying CSS Class "In Office"
But in case of Calender View i m unable to show such information by applying 2 different CSS class for that day.
i have created 2 appointment objects with start-time and end-time as for 1st (s) 9- (e) 11 & for 2nd (s)11-6(e)
Infragistics.WebUI.WebSchedule.Appointment App.
and i applied 2 different Css to both objects.
App1.Style.CssClass = "Absence";
App2.Style.CssClass = "OutOfOffice";
In case of Day view its showing both period 9-11 in office with style Absence and 11-6 with style OutOfOffice
But in Case of Calender view it doesnt show any of the Css.
Can i show such two periods in WebCalenderview ?If yes what i should do?
rajrkodeep,
The WebCalendarView cannot display both CSS classes in a single day- the control only highlights any day that contains Appointments. In order to style those days, you will need a single CSS class and set the WebCalendarView.ActivityDayStyle.CssClass property.
Hope this helps,
~Kim~
ok.Thanks kim.One more doubt.Lets Say i have 2 appointments on a Day with BackgroundColor as Red and Green.So how can i display those appointments with their styles on Calendeview.
Each day in the WebCalendarView is rendered as an HTML TableCell. The TableCell element has a style.backgroundImage property that you can set. Unfortunately this property only takes a single image. You can handle the WebCalendarView's RenderDay client side event and set the day.element.style.backgroundImage property to the image you want, but it can only be a single image.
okay.Actually i have displayed them in MonthView and Week and Day View also.But i could not display in CalenderView.Thanks for reply.One more doubt.
I want to display two images on background of a day one at top & one at bottom.Is it any way to do it?
You cannot display appointments and their styles in the WebCalendarView, as the control does not actually display appointments- it simply highlights days that have appointments. If you want a UI control that displays both a month view and appointments, you will need to use the WebMonthView. If you would like to submit a feature request for this functionality in the WebCalendarView, you can do so here.