Getting Started with Silverlight DataServiceDataSource
This tutorial will walk you through the creation of a sample application that contains RadDataServiceDataSource control.
In order to use RadDataServiceDataSource in your project you need to add references to the following assemblies
Telerik.Windows.Controls
Telerik.Windows.Controls.DataServices
If you are using OData version 3 you need to add reference to Telerik.Windows.Controls.DataServices50 which is built against Microsoft.Data.Services.Client with version 5.6.4.
Adding RadDataServiceDataSource
We will use RadGridView control in order to visualize the data.
Example 1: Using RadDataServiceDataSource with RadGridView
<telerik:RadDataServiceDataSource Name="customersDataSource" QueryName="Products" AutoLoad="True">
<telerik:RadDataServiceDataSource.DataServiceContext>
<local:ProductsContext/>
</telerik:RadDataServiceDataSource.DataServiceContext>
</telerik:RadDataServiceDataSource>
<telerik:RadGridView Grid.Row="0" ItemsSource="{Binding DataView, ElementName=customersDataSource}"
IsBusy="{Binding IsBusy, ElementName=customersDataSource}"
ShowGroupPanel="False"/>