The Data Service sample works fine when you instantiate a concrete service context object directly in the XAML of the RadDataServiceDataSource.
Should it be possible to data bind to the DataServiceContext property of a RadDataServiceDataSource instead?
I have an app that allows the choice of several OData services. When a service is chosen, I dynamically generate a service client proxy, and activate a new instance of that proxy's exported DataServiceContext-derived class. Now I want to bind that to my RadDataServiceDataSource (and of course change the binding to a completely different context if another OData service is chosen).
These are all read-only services, so I'm not concerned about maintaining any consistency of client-side update state.
It seems that when the DataServiceContext is set via a binding, the grid shows no data.
It seems that queries are never issued to the context:
System.ArgumentException: Could not find a matching query method on the DataServiceContext
Maybe the RadDataServiceDataSource is reflecting on the declared type of the bound property (DataServiceContext) instead of its runtime type (generated in the proxy and unavailable to me at design-time)?
Should it be possible to data bind to the DataServiceContext property of a RadDataServiceDataSource instead?
I have an app that allows the choice of several OData services. When a service is chosen, I dynamically generate a service client proxy, and activate a new instance of that proxy's exported DataServiceContext-derived class. Now I want to bind that to my RadDataServiceDataSource (and of course change the binding to a completely different context if another OData service is chosen).
These are all read-only services, so I'm not concerned about maintaining any consistency of client-side update state.
It seems that when the DataServiceContext is set via a binding, the grid shows no data.
It seems that queries are never issued to the context:
System.ArgumentException: Could not find a matching query method on the DataServiceContext
Maybe the RadDataServiceDataSource is reflecting on the declared type of the bound property (DataServiceContext) instead of its runtime type (generated in the proxy and unavailable to me at design-time)?