Hello,
I'm using the XamOutlookCalendarView in conjunction with the XamDateNavigator and I'm having a great time. I like the header of the XamOutlookCalendarView and the fact that the user can go forward or backward one day using the arrows.
Now since I want to refresh the appointments (another user might have removed or added an appointment in the day the user is about to consult) I need to know what is/are the selected date(s). Curiously if I subscribe the dateNavigator_SelectedDatesChanged event it certainly gets triggered, nonetheless the addeddates property appears empty.
Where am I suppose to check such information?Best Regards.
Roberto Dalmonte
Hello Roberto,
I have been looking into your requirements and I am not able to reproduce the behavior that you are describing.
I have attached the sample project I used to test this and on my side both dateNavigator.SelectedDates and e.AddedDates are not empty in the handler of the SelectedDatesChanged.
If with my sample you are still unable to get the selected dates, would you please provide me with a steps to reproduce which I should follow in order to see the issue.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one, so I can continue my researching on this issue..
Thanks in advance.
Hello Elena,it looks like I spent too many hours on the keyboard and, what's worse, in the weekend.
It certainly works, sorry
Hello again,
If you still have any additional questions or concerns on this matter, please feel free to ask.
In what infragistics library can i find the xamoutlookcalendarview. I don't seem to find these controls or the dlls you're referencing on your project.
I have the Infragistics NetAdvantage 2010.3 for WPF. CLR4.0
XamOutlookCalendarView and XamDateNavigator controls are available from version 2011.1 and above.
Thanks,
Diyan Dimitrov
Thanks so much..installed the new version of controls and i found it.
Another quick question.
When i have an appointment on my calendar (month view) I'd like to disable the ability to edit that appointment's title. Currently if I click on the appointment the edit cursor sets in and it allows me to type in place. I'd like to disable this.
Also, I'd like to disable the ability to switch calendar views...currently if I'm in the month view and click on a date bar it switches to day view. How do i disable this as well?
At the end of this forum thread is described how to disable the in-place editing:
http://forums.infragistics.com/forums/p/52610/274911.aspx#
If you want to disable switching the views you can hook to the XamOutlookCalendarView.CurrentViewModeChanging event and cancel it.
http://help.infragistics.com/Help/NetAdvantage/WPF/2011.2/CLR4.0/html/InfragisticsWPF4.Controls.Schedules.v11.2~Infragistics.Controls.Schedules.XamOutlookCalendarView~CurrentViewModeChanging_EV.html
Hope this helps!