I am new to the WebSchedule and I am hoping I missed something silly. Whenever, I have an appointment that runs across multiple days it doesn't show up on the webdayview. Everything works with the appointments that don't run to the next day?
2/22/11 1pm - 2pm shows up on the 2/22/11 day view but 2/22/11 11PM - 2/23/11 1AM doesn't?
Any help would be appreciated?
Thank you this info is very helpful. It all of a sudden clicked and this matter is resolved.
Hello Scott,
A good starting point to review the WebSchedule controls may be found using the following link to the Infragistics Online Help for ASP.NET:
<http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=Web_WebSchedule.html>
The information found in the above link provides additional articles which demonstrate through code examples and information how to use the various properties and methods contained in the WebSchedule controls.
The Activity object is used to maintain an event or task information for a particular date and time. More information explaining the Activity Class may be found here:
<http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=Infragistics4.WebUI.WebSchedule.v10.3~Infragistics.WebUI.WebSchedule.Activity.html>
The Variance object is similar to the Activity object, except that the Variance Data for the OriginalStartDateTimeUTC cannot be null. A use of the Variance object is to make a copy of the recurring Activity with changes. An example is to set a different starting time or a one-time change in the location for the recurring activity. Limitiations when setting Variances is a user cannot modify an Activity occurrance to begin earlier or later than the original Activity. Please see the following link to article found in the Online Help How Recurrence Logic is Executed for more information:
<http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=WebSchedule_How_Recurrence_Logic_is_Executed.html>
The Resource object is any person, place or thing for which the Activities may be scheduled. Please see the following links to the Resource Class Properties and to an example Data Model for the resource Table for additional information:
<http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=WebSchedule_Data_Model_for_the_Resource_Table.html>
<http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=Infragistics4.WebUI.WebSchedule.v10.3~Infragistics.WebUI.WebSchedule.Resource_properties.html>
Please let me know if this information is helpful or if you require further assistance on this matter.
Thank you.
Sincerely,Mike D.Developer Support EngineerInfragisticswww.infragistics.com/support
Thanks for taking the time to respond.
The samples work fine, I guess i am doing it wrong. Although its strange that it works for all single day appointments but not mufti day appointments?
Do I need to use the Variance and resource Datasources? What are they?
I was just doing something quickly to show appointments for a day and when I use the following code for an appointment that goes from 1 day to another it doesn't show on the date it started.
AppointmentsDT = new DataTable("Appointments"); AppointmentsDT.Columns.Add("ID", typeof(int)); AppointmentsDT.Columns.Add("StartDateTimeUtc", typeof(DateTime)); AppointmentsDT.Columns.Add("Duration", typeof(int)); AppointmentsDT.Columns.Add("Subject", typeof(string)); AppointmentsDT.Columns.Add("AllDayEvent", typeof(bool)); AppointmentsDT.Columns.Add("Location", typeof(string)); AppointmentsDT.Columns.Add("ActivityDescription", typeof(string)); AppointmentsDT.Columns.Add("Status", typeof(int)); AppointmentsDT.Columns.Add("EnableReminders", typeof(bool)); AppointmentsDT.Columns.Add("ShowTimeAs", typeof(int)); AppointmentsDT.Columns.Add("Importance", typeof(int)); AppointmentsDT.Columns.Add("VarianceID", typeof(string)); AppointmentsDT.Columns.Add("RecurrencePattern", typeof(string)); AppointmentsDT.Columns.Add("RecurrenceID", typeof(int)); AppointmentsDT.Columns.Add("OriginalStartDateTimeUtc", typeof(DateTime)); AppointmentsDT.Columns.Add("ResourceKey", typeof(string)); AppointmentsDT.Rows.Add(new object[] { 1,'today at 9pm', 'a timespan that goes into the next day', 'whatever', false, "", "", 1, false, 1, 1, Guid.NewGuid().ToString(), "", null, null, "-999" }); WebScheduleGenericDataProvider1.ActivityDataSource = AppointmentsDT;
I guess I didn't read thru everything before I started using the webschedule. There is so many different places to get help its kind of overwhelming at first(the sample son teh website dont explain anything). Some of the documentation seems to read like a computer wrote it and I find it hard to learn about the different concepts with each control from the beginning. But anyway can you recommend a starting place that describes how the scheduleinfo should be used with the different schedule controls and what the activity, variance and resource stuff is?
Thank you for submitting your inquiry to the Infragistics ASP.Net Forums. I have tested this functionality with the attached sample which uses NetAdvantage 2010 Volume 3 Build 1013.
In the attached sample, I set up an appointment from 3/01/11 11:00pm - 3/02/11 1:00am which displays properly on the Calendar.
Please test this sample on your machine and let me know of your results or if you have any questions.