This is a migrated thread and some comments may be shown as answers.

Problem sending a Collection object to Domain service Method

0 Answers 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
SivaPrasad Bevara
Top achievements
Rank 1
SivaPrasad Bevara asked on 30 Oct 2012, 10:48 AM

Hi,

I am using Telerik Controls for Silverlight 5 and RIA services.

I need to send Observable collection as a parameter to a Domain service method. But it is not accepting the Generic collection Objects (eg: ObservableCollection<Employee> employees) as a parameter.

So I tried using the [Invoke] method for this. Now it is accepting the Collection object as a parameter, but I am not able to return a QuryableCollection from the service method. Its only allowing me to return the "List<T>" object.

But in my ViewModel, I need QueryableDomainServiceCollectionView<T> to load the Telerik Rad GridView.
I tried converting the List<T> to a QueryableDomainServiceCollectionView<T>, but I didn't find any method for that in the Silver light Client application.

Please help me in returning the QueryableCollection from the domain service Or Converting the List<T> to QueryableDomainServiceCollectionView<T> in the View Model in silver light application.

Regards,

SivaPrasad.B

Tags
GridView
Asked by
SivaPrasad Bevara
Top achievements
Rank 1
Share this question
or