Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Ability to dynamically generate Resources and have them all display with their respective Appointments
posted

I am new to the XamScheduleView control and I have a requirement to display a bunch of appointments (activities in my domain) by resource (activity type).

The scenario is as follows:

1) User can select a broad Activity which filters the set of Activity Types

2) At this point, all Activity Types (resources) shall be visible in the Schedule View

3) User MAY choose to filter down to a specific Activity Type which then shows the one-and-only-one Activity Type (resource)

So I can dynamically bind my Activity Types to the ResourceItemsSource such that when I first select an Activity (top level filter), it's Activity Types (resources) render properly.  However even to get this far, I have to hard-code a set of InitialCalendarIds with the IDs representing each Activity Type from my data store.  I want this to be dynamic.  As IntitialCalendarId is not a dependency property, I cannot bind a comma-separated list of IDs to it.

Secondly, when I subsequently change my Activity, my new set of Activity Types are not showing up on the Schedule View (all my resources from the previous Activity disappear correctly, but are not replaced with the new set of Activity Types (resources) from the new Activity).  Additional info here, if I then go back and re-select the original Activity, the original Activity Types are no longer showing up either.

Is it possible to make my scenario work with your ScheduleView?

In my context, a Resource is an Activity Type which is filterable by a parent Activity. Appointments belong to an Activity Type.

Thanks.