XamOutlookCalendarView: how to configure working hours for ShowWorkingHoursOnly. For example how can the working hours be set from 6am - 8pm?
Hello Jesse,
Thank you for your post. I have been looking into it and have created a small sample for you. In the sample application the WorkingHours time range is set in the xamScheduleDataManager. Here is a link to our documentation, where you can find more information about setting the working hours: http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/xamSchedule_Using_Manager_Working_Hours.html.
Please refer to the attached sample application and feel free to let me know if you have any further questions on the matter.
Thanks for the reply. This seems to work when the XamOutlookCalendarView initially loads. However, as soon as the user interacts with the calendar, such as to scroll down/up... The time range resets to the default 24 hour range. When combining the ShowWorkingHoursOnly=true with this example code the same result happens where the time range looks good on load, but resets to the 8-5 time range as soon as the user scrolls.
I have been testing the sample application and could not reproduce the issue you have mentioned in your previous post. In the sample application the property ShowWorkingHoursOnly is set to ‘true’. I have tested the sample application with the latest service release for 12.2 and the RTM for 13.1. Would you please provide me with more detailed information regarding the environment in which you are developing your application (Operating system, Service Release, Integrated development environment and the specific version of our product that you are using and any other information that might help reproducing your issue), in order to be able to identify what might be causing this behavior?
Looking forward to hearing from you.
Can you please connect to a valid exchange server? It appears that updates are pushed and/or refreshed and this is what is causing the hour range to reset to the default.
Snippet:
dataManager.DataConnector =
new ExchangeScheduleDataConnector
();
(dataManager.DataConnector
as ExchangeScheduleDataConnector).UseDefaultCredentials = true
;
as ExchangeScheduleDataConnector).Users = null
if ((dataManager.DataConnector as ExchangeScheduleDataConnector).ServerConnectionSettings == null
) {
as ExchangeScheduleDataConnector).ServerConnectionSettings = new ExchangeServerConnectionSettings
as ExchangeScheduleDataConnector).ServerConnectionSettings.RequestedServerVersion = Infragistics.Controls.Schedules.ExchangeVersion
.AutoDetect;
service.AutodiscoverUrl(currentEmail);
as ExchangeScheduleDataConnector
).ServerConnectionSettings.Url = service.Url;
).Connect();
string domain = Environment
.UserDomainName;
string user = Environment
.UserName;
dataManager.CurrentUserId = domain.ToLower() +
char
.ConvertFromUtf32(92) + user.ToLower();
OutlookCalendar.DataManager = dataManager;
I have modified the sample to use an exchange server and could not reproduce the issue. I have attached the modified sample for you. Would you please provide me with more detailed information regarding the environment in which you are developing your application (Operating system, Service Release, Integrated development environment and the specific version of our product that you are using and any other information that might help reproducing your issue), in order to be able to identify what might be causing this behavior?
Quick follow here. We are using Default Credentials = true, as such the working hours are being pulled from the local user's Outlook settings. Having the user change their local Outlook working hours fixes this issue.
FYI.... Kind of dug moment...
Thanks for the time
Thank you for the feedback. I am glad that you have found a solution to your issue. Please do not hesitate to contact us if you have any further questions on the matter.