I'm testing the RadScheduler in an MVC app using a custom provider. When setting resource types, I use the following code:
However, when adding/editing appointments in the Scheduler, both Client and Staff resource lists show up as a single-choice dropdown, rather than the multi-choice checkboxes expected for the Client type.
If I specify the ResourceTypes at design-time using the Resource Type Editor, the Client resources are displayed correctly with checkboxes. This is a tolerable solution, but it defeats the purpose of specifying ResourceTypes from the provider, and seems to contradict the information in the help file saying that the Scheduler gets its information from the data provider.
I've also looked at the article telling how to create a provider that supports multiple resource values, but that article is out of date as the provider property 'SupportsMultipleResourceValues' is now listed as obsolete.
Is the Scheduler supposed to use ResourceTypes as specified by the provider, or is using the Resource Type Editor the only way to allow for multiple resource selection?
Thanks
public
override
IEnumerable<ResourceType> GetResourceTypes(RadScheduler owner) {
List<ResourceType> resourceTypes =
new
List<ResourceType>();
resourceTypes.Add(
new
ResourceType(
"Staff"
,
false
));
resourceTypes.Add(
new
ResourceType(
"Client"
,
true
));
return
resourceTypes;
}
However, when adding/editing appointments in the Scheduler, both Client and Staff resource lists show up as a single-choice dropdown, rather than the multi-choice checkboxes expected for the Client type.
If I specify the ResourceTypes at design-time using the Resource Type Editor, the Client resources are displayed correctly with checkboxes. This is a tolerable solution, but it defeats the purpose of specifying ResourceTypes from the provider, and seems to contradict the information in the help file saying that the Scheduler gets its information from the data provider.
I've also looked at the article telling how to create a provider that supports multiple resource values, but that article is out of date as the provider property 'SupportsMultipleResourceValues' is now listed as obsolete.
Is the Scheduler supposed to use ResourceTypes as specified by the provider, or is using the Resource Type Editor the only way to allow for multiple resource selection?
Thanks