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 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.
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
OS: Windows 7
IDE: VS2012 Ultimate
Assembly Set: InfragisticsWPF4.v11.2
I continue to experience the same issue where the Calendar loads with the set times, but is quickly updated to the 8a-5p defaults.
In your example you are specifying the defaults that are replacing my set working hours. Please confirm: You can set the working hours from 6am - 8pm?
Thanks
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?
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;