Getting Started with WPF 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.
For OData version 4 support, you need to add reference to Telerik.Windows.Controls.DataServices60 which is built against Microsoft.OData.Client with version 6.15.0.
Since the R2 2021 release, you can find a Telerik.Windows.Controls.DataServices dll in the NetCore, WPF50 and WPF60 folders built against Microsoft.OData.Client with version 7.8.3.
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"/>