Right now, I have attached properties added to the month calendar control and based on the dates that are selected, i am switching the different schedule views and clearing the visible days and updating it with the selected date range.
Please Suggest.
Thanks in advance,
Hariharan
This is actually something we just added in 11.1. We added 2 new schedule controls - xamDateNavigator and xamOutlookCalendarView.
xamDateNavigator is a month calendar similar to the xamMonthCalendar that integrates with the schedule datamanager and has the ability to display bold for dates with activity of the CurrentUser of the xamScheduleDataManager and also can show the activity for a given date in the tooltip for that day.
xamOutlookCalendarView is a composite control that contains day/month/schedule view and switches between the views based on interaction with the control similar to that of Outlook - e.g. clicking on a week header in the month view shifts to week view for that week, clicking a day header in month/day/week view shifts to day view for that day, keyboard shortcuts can switch between modes, and the modes can automatically switch between day/schedule view based on the number of calendars visible (just as they do in outlook). In addition the control exposes a property named DateNavigator that is used to synchronize selection between a month calendar control and the outlook calendar view similar to that of outlook. You can set this property to an instance of a xamDateNavigator (i.e. you would set this property to a Binding whose ElementName is the xamDateNavigator you have within your ui).
Thanks Much! That sure makes it a lot cleaner.
It's hard to say based on your description. As long as the item for the Resource is in the ResourceItemsSource, the item for the ResourceCalendar is in the ResourceCalendarItemsSource and the OwningResourceId of the ResourceCalendar maps to the Id of the resource then it should be displayed. I'm not sure what you mean by "not expecting the resource to have a calendar already" but if you are using ResourceCalendars then there must be an item in the ResourceCalendarItemsSource; you cannot just add a ResourceCalendar to a Resource's Calendars collection or create a ResourceCalendar on the fly and add it to the CalendarGroup. If you still have an issue please provide a sample and we can look into it further.
I ll post back with a sample application in a day. I also had a few other questions related to the scheduling tool which i added as seperate posts .Please Suggest responses
Thank You,
Please find attached the sample project. In the main window, first click on the button captioned "Load Default Values' .That will load a few resources and the calendars for those.
Next Type any name in the textbox below and click on the "Add" Button. This adds a new resource , and the calendar and creates the calendar group, but the calendar is not visible in the scheduler.
Have you had a chance to look at my attached sample project?
I am also having an issue while removing a resource from the list at runtime. I assume that the scheduler supports adding and removing resources and resource calendars at runtime ?
Please review the sample project attached in my previous post and suggest a response.
Thanks.That worked.
hariharan019 said: am also having an issue while removing a resource from the list at runtime. I assume that the scheduler supports adding and removing resources and resource calendars at runtime ?
Yes resources may be removed and the ui should be updated. It could be the same type of timing issue you had with adding the resources. If you still have an issue then please post an updated sample that demonstrates the issue with removing the resources.