Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Need Help regarding WebCalendarView Control
posted

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?

Parents
  • 5389
    Verified Answer
    posted

    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~

Reply Children