Is it possible to use the DomainDataSource control with a plain DomainService? I want to page/sort non-entity data.
Asked
Active
Viewed 264 times
1 Answers
1
Yes, if you build your DomainService, it will become available as a DomainContext. then you can use it inside your DomainDataSource.DomainContext property. A simple example from MSDN
<riaControls:DomainDataSource Name="source" AutoLoad="True" QueryName="GetProducts">
<riaControls:DomainDataSource.DomainContext>
<domain:ProductDomainContext />
</riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>

Rik van den Berg
- 2,840
- 1
- 18
- 22
-
I had to reinstall riaservices to get this working, which is where my frustrations were coming from. – Ronnie Overby Nov 30 '11 at 15:11
-
I can understand. It also took me a while and 3 times retrying after having no time to further try it out. – Rik van den Berg Dec 01 '11 at 07:20