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
20
WebCalendar does not show appointments
posted

I'm new to your web controls and am trying the Calendar control.  All I'm looking for is to display dates on the calender highlighted. I'm using the following code in the page load event with only the calendar and the WebScheduleInfo.  Do I need to add other controls to get it to work? Thanks

Me.WebScheduleInfo1.DataBind()
Dim Appt As Appointment
Appt =
New Appointment(Me.WebScheduleInfo1)
Appt.StartDateTime =
New Infragistics.WebUI.Shared.SmartDate(2008, 2, 3, 10, 11, 11)
Appt.Key =
"123"
Appt.ResourceKey = Me.WebScheduleInfo1.VisibleResources.UnassignedResource.Key
Appt.Style.BackColor = System.Drawing.Color.Red
Me.WebScheduleInfo1.Activities.Add(Appt)