Hi all,
I'm using custom resources to represent the venues for each appointment. I'm using a custom SchedulerProvider class inherited from DbSchedulerProviderBase. It's all working fine: when a user creates an appointment they are offered a choice of venue resources, and when I set the RadScheduler's GroupBy property to "Venue", the appointments are being grouped correctly by venue. My question is as follows:
Is it possible to show only a subset of a resource when grouping, but continue to offer the user the full resource set when creating an appointment? For example, I may have 20 venue resources, but I don't want to show them all in the main RadScheduler view: I want to use my own UI controls to allow the user to select which venue resources they want to group by. However, when the same user is creating an appointment, they will need access to the full range of venues. As far as I can see, in both situations the RadScheduler will be calling the same GetResourcesByType("Venue") function, so I'm not sure how to return a different set of resources in each case.
One idea I've had would be to create an additional, dummy resource type (e.g. "GroupingVenue") just for the purposes of grouping, then I could modify my code in GetResourcesByType("GroupingVenue") such that it return only those venues selected by the user in my UI.
If anyone can think of a more elegant way of achieving this functionality, I'd be pleased to hear from you.
Kind regards,
Adrian
I'm using custom resources to represent the venues for each appointment. I'm using a custom SchedulerProvider class inherited from DbSchedulerProviderBase. It's all working fine: when a user creates an appointment they are offered a choice of venue resources, and when I set the RadScheduler's GroupBy property to "Venue", the appointments are being grouped correctly by venue. My question is as follows:
Is it possible to show only a subset of a resource when grouping, but continue to offer the user the full resource set when creating an appointment? For example, I may have 20 venue resources, but I don't want to show them all in the main RadScheduler view: I want to use my own UI controls to allow the user to select which venue resources they want to group by. However, when the same user is creating an appointment, they will need access to the full range of venues. As far as I can see, in both situations the RadScheduler will be calling the same GetResourcesByType("Venue") function, so I'm not sure how to return a different set of resources in each case.
One idea I've had would be to create an additional, dummy resource type (e.g. "GroupingVenue") just for the purposes of grouping, then I could modify my code in GetResourcesByType("GroupingVenue") such that it return only those venues selected by the user in my UI.
If anyone can think of a more elegant way of achieving this functionality, I'd be pleased to hear from you.
Kind regards,
Adrian