Set the ActiveDayUtc property on the WebScheduleInfo to the date value of the WebDateChooser. The WebDayView will display the active day given by the WebScheduleInfo control it has been attached to.
' May 14 +5h timezone (EST)WebScheduleInfo1.ActiveDayUtc = New Infragistics.WebUI.Shared.SmartDate(2008, 5, 14, 5, 0, 0)
Note that ActiveDay is given in UTC, this is because WebSchedule is a global scheduling solution so it takes into account your Web site having users accessing the schedule from different timezones around the globe. Therefore time is important. A pitfall faced by many new WebSchedule developers is they will assign a Midnight date/time, but then when the WebSchedule view adjusts the resource's schedule to their local timezone they may see activities are off because the timezone shifts the date to the day before.
Thank you very much for your help. But I have another question. How can I set the day of the WebDayView with the CodeBehind-File? With a WebDateChooser i wan't to choose a day and after this the day in the WebDayView should changed. For better understanig I upload a image:
http://img138.imageshack.us/my.php?image=calendervz6.png
Maddi1986 said: I am a total beginner in terms of Infragistics. And although I would like to start to insert an appointment in a WebDayView for example on 06/21/2008 at 10.00am. How exactly can I do?
Make sure that you have both a WebDayView and a WebScheduleInfo control on your Page (the WebScheduleInfo holds the data in-memory that will be displayed by the WebSchedule view controls attached to it). On the WebDayView, set its WebScheduleInfo property in the designer to your WebScheduleInfo control (it will probably be called "WebScheduleInfo1" or something like that).
The see the help topic to take it from there, Add an Activity on the Server. When following the instructions in How to Create an Activity in Code, make sure to give each appt a different Key, that often throws newcomers to WebDayView.
For your appt to start on 06/21/2008 at 10:00am Universal Time (London, England, time zone excl. any Daylight Savings Time impact) you will want to add the following line (C#),
appt.StartDateTimeUtc = new Infragistics.WebUI.Shared.SmartDate( 2008, 6, 21, 10, 0, 0);
HTH,