How can I bind more than one month's worth of appointments?
I have created a report by sing the databind and then looping through the Appointmentsubsetcollection to see which appointments meet the report criteria, but the data using the basic databind will not go out past one month....
Thanks
tgaudette said:How can I bind more than one month's worth of appointments? I have created a report by sing the databind and then looping through the Appointmentsubsetcollection to see which appointments meet the report criteria, but the data using the basic databind will not go out past one month.... Thanks
Search for FrameInterval property of the WebSchedule. I know the date range of the appointment depends on what what control it is bound to.
jscatalina said: Search for FrameInterval property of the WebSchedule. I know the date range of the appointment depends on what what control it is bound to.
Does anyone have an example of changing the FrameInterval property? I've tried a few different things, but have been unsuccessful so far.
tgaudette,
I think jscatalina got me pointed in the right direction on another post in this topic group. You might want to poke around a bit more.
Regardless, the FrameInterval setting is acted upon using a listener handler near the top of your code-behind. The following line traps the FrameIntervalChanging event and sends processing of the event to the "scheduleInfo_FrameIntervalChanging" method:
//Set the DataFetch FrameInterval to 30 days. The default is way too small when one does not have
// a visual scheduling control on the form. Obviously, increasing the appointment filter interval will have a performance hit.
scheduleInfo.FrameIntervalChanging += new FrameIntervalChangingEventHandler(this.scheduleInfo_FrameIntervalChanging);
The following is my "scheduleInfo_FrameIntervalChanging" which adjusts the FrameInterval from a very small timeslice - I think 1 hour - to thirty days. The interval will be fifteen days before the today and fifteen days after. You could use a date selected by the user as well.
/// <summary>
/// scheduleInfo_FrameIntervalChanging()
/// Expand the DataFetch date frame to retrieve a client's scheduling record. The default is so
/// small when one does not have one of the visual scheduling controls actually on the form as to
/// be ineffective. We are talking about maybe a minute. The recurring appointments did get read,
/// but those appointments that were a single date did not. Initially chose a 30 day window centered on
/// today.
/// </summary>
/// <param name="sender"></param>
/// <param name="args"></param>
{
args.FrameInterval.EndDate = Infragistics.WebUI.Shared.SmartDate.Today.AddDays(15.0); args.FrameInterval.StartDate = Infragistics.WebUI.Shared.SmartDate.Today.AddDays(-15.0);args.Updated = true;
args.FrameInterval.StartDate = Infragistics.WebUI.Shared.SmartDate.Today.AddDays(-15.0);
}
Thanks ~ that did the trick!