I've placed a scheduler component on my form which uses webservices to populate the scheduler's appointments. Now I want to be able to select the resources I do or don't want to see in the scheduler. The resource population is set to take place serverside, but offcourse it still uses the webservice call to get the actual resources.
I've implemented my own provider to get the resources from my database using Linq. So I now need a way to pass my filter options (which resources should be retrieved) to that function, but I can't find a way to do so.
I've found this post: http://www.telerik.com/community/forums/aspnet-ajax/scheduler/service-and-grouped-views.aspx
which is almost what I want. For some reason, I can't cast the SchedulerInfo object to my own custom SchedulerInfo object and thus not read the extra properties I fitted in there. And the only thing the webservice does is transfer the call to the GetResources function of my controller, which ultimately leads to a call of the GetResourcesByType function on my provider. That last one only has the grid and a resourceType string as parameters, where did the SchedulerInfo object go?
So I have two problems:
1) Why can't I cast the SchedulerInfo object to my own SchedulerInfo object
2) How should I pass the filter options to the actual GetResourcesByType method? I thought about temporarily storing them in a static class, but I wonder whether there isn't a better option.