New to Telerik UI for WPFStart a free 30-day trial

The DataServiceQuery

Updated on Sep 24, 2025

Along with the context, you need to specify the name of the query that will be executed on the server. If you examine the generated data service context class, you will notice that it has properties of type DataServiceQuery<T>. You need to specify the name of the property that you would like to load. The name of the query is specified as a string for easier XAML use. RadDataServiceDataSource will use reflection to find the actual DataServiceQuery<T> on the DataServiceContext instance based on the QueryName property you have assigned, which in this case is Customers:

XAML

	<telerik:RadDataServiceDataSource Name="customersDataSource" QueryName="Customers" AutoLoad="True">
	   <telerik:RadDataServiceDataSource.DataServiceContext>
	      <local:MyNorthwindContext/>
	   </telerik:RadDataServiceDataSource.DataServiceContext>
	</telerik:RadDataServiceDataSource>
Not finding the help you need?
Contact Support