Click or drag to resize
RadDataServiceDataSource Class
Provides an object for loading, paging, filtering, sorting and editing entities coming from a WCF Data Service.
Inheritance Hierarchy

Namespace: Telerik.Windows.Controls
Assemblies:  Telerik.Windows.Controls.DataServices (in Telerik.Windows.Controls.DataServices.dll) Version: 2017.3.913.40 (2017.3.913.40)
  Telerik.Windows.Controls.DataServices50 (in Telerik.Windows.Controls.DataServices50.dll) Version: 2017.3.913.40 (2017.3.913.40)
  Telerik.Windows.Controls.DataServices60 (in Telerik.Windows.Controls.DataServices60.dll) Version: 2017.3.913.40 (2017.3.913.40)
Syntax
public class RadDataServiceDataSource : Control

The RadDataServiceDataSource type exposes the following members.

Constructors
  NameDescription
Public methodRadDataServiceDataSource
Initializes a new instance of the RadDataServiceDataSource class.
Top
Methods
  NameDescription
Public methodBeginInit
Starts the initialization process for this element.
(Overrides FrameworkElementBeginInit.)
Public methodCancelLoad
Cancels the current load operation if any.
Public methodCancelSubmit
Cancels the current submit operation if any.
Public methodEndInit
Indicates that the initialization process for the element is complete.
(Overrides FrameworkElementEndInit.)
Public methodLoad
Initiates a Load operation if possible.
Public methodRejectChanges
Rejects all changes.
Public methodSubmitChanges
Initiates a Submit operation if possible.
Top
Extension Methods
  NameDescription
Public Extension MethodChildrenOfTypeT
Gets all child elements recursively from the visual tree by given type.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodClearIfNoBindingAndSet
Clears if set.
(Defined by CommonExtensions.)
Public Extension MethodClearIfSet
Clears the property if a value has been set.
(Defined by CommonExtensions.)
Public Extension MethodDeserializePrimitives
Deserializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodEnableLayoutRounding (Defined by LayoutRoundingHelperExtensions.)
Public Extension MethodFindChildByTypeT
Finds child element of the specified type. Uses breadth-first search.
(Defined by ChildrenOfTypeExtensions.)
Public Extension MethodGetAssociatedInlineUIContainer (Defined by ExtensionMethods.)
Public Extension MethodGetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodGetBaseControlItemStatus
Gets a string that communicates the visual status of a Control.
(Defined by AutomationExtensions.)
Public Extension MethodGetBoundsRelativeTo
Gets the bounds relative to the current framework element.
(Defined by ExtensionMethods.)
Public Extension MethodGetGlobalMousePosition
(Defined by WindowHost.)
Public Extension MethodGetParents
Enumerates through element's parents in the visual tree.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodGetVisualParentT
Searches up in the visual tree for parent element of the specified type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is ancestor of the current UI element.
(Defined by ExtensionMethods.)
Public Extension MethodIsAncestorOf(DependencyObject)Overloaded.
Determines whether the element is an ancestor of the descendant.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodIsKeyboardFocusWithin
Determines whether keyboard focus is within the current UI element.
(Defined by KeyboardHelper.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by DependencyObjectExtensions.)
Public Extension MethodIsLocalValueSet(DependencyProperty)Overloaded.
Determines whether the specified dependency property local value is set.
(Defined by CommonExtensions.)
Public Extension MethodParentOfTypeT
Gets the parent element from the visual tree by given type.
(Defined by ParentOfTypeExtensions.)
Public Extension MethodSerializePrimitives
Serializes some primitive properties of a control.
(Defined by SerializationExtensions.)
Public Extension MethodSetAssociatedLayoutBox (Defined by ExtensionMethods.)
Public Extension MethodSetIfDifferent
Sets the value of the dependencyProperty property if it's hasn't that value currently.
(Defined by CommonExtensions.)
Public Extension MethodSetLayout
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Point)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSetLocation(Double, Double)Overloaded.
Sets the location in the element in Canvas.
(Defined by CommonExtensions.)
Public Extension MethodSlideInOverloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideIn(TimeSpan)Overloaded.
Slides the given element into view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOutOverloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodSlideOut(TimeSpan)Overloaded.
Slides the given element out of view. This is an extension method.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan)Overloaded.
Translates the target element as requested by the parameters.
(Defined by CalendarAnimation.)
Public Extension MethodTranslate(NullableDouble, NullableDouble, NullableDouble, NullableDouble, TimeSpan, Action)Overloaded.
Translates the target element as requested by the parameters and executes the action request.
(Defined by CalendarAnimation.)
Top
Fields
  NameDescription
Public fieldStatic memberAutoLoadProperty
Identifies AutoLoad dependency property.
Public fieldStatic memberCanLoadProperty
Identifies CanLoad dependency property.
Public fieldStatic memberDataServiceContextProperty
Identifies DataServiceContext dependency property.
Public fieldStatic memberExpandProperty
Identifies Expand dependency property.
Public fieldStatic memberHasChangesProperty
Identifies HasChanges dependency property.
Public fieldStatic memberIsBusyProperty
Identifies IsBusy dependency property.
Public fieldStatic memberIsLoadingDataProperty
Identifies IsLoadingData dependency property.
Public fieldStatic memberIsSubmittingChangesProperty
Identifies IsSubmittingChanges dependency property.
Public fieldStatic memberLoadDelayProperty
Identifies LoadDelay dependency property.
Public fieldStatic memberPageSizeProperty
Identifies PageSize dependency property.
Public fieldStatic memberQueryNameProperty
Identifies QueryName dependency property.
Top
Properties
  NameDescription
Public propertyAutoLoad
Gets or sets a value indicating whether Load is automatically invoked when a change occurs that impacts the query composed by the data source.
Public propertyCancelLoadCommand
Gets the command for cancelling load.
Public propertyCancelSubmitCommand
Gets the command for cancelling submit.
Public propertyCanLoad
Gets a value indicating whether the control can perform a load operation based on the present state.
Public propertyDataServiceContext
Gets or sets the WCF DataServiceContext instance used for executing the load and submit operations.
Public propertyDataView
Gets the current view of entities resulting from the last load operation, using a DataItemCollection.
Public propertyExpand
Gets or sets the expand option.
Public propertyFilterDescriptors
Gets the filter descriptors used for filtering operations.
Public propertyGroupDescriptors
Gets the group descriptors used for grouping operations.
Public propertyHasChanges
Gets a value indicating whether the DataServiceContext currently has any entities with pending changes.
Public propertyIsBusy
Gets or sets a value indicating whether the dataService data source is busy (loading or submitting).
Public propertyIsLoadingData
Gets a value indicating whether RadDataServiceDataSource is currently loading data.
Public propertyIsSubmittingChanges
Gets a value indicating whether RadDataServiceDataSource is currently submitting changes as a result of a call to SubmitChanges.
Public propertyLoadCommand
Gets the command for loading data.
Public propertyLoadDelay
Gets or sets the delay before an automatic data loading operation is started.
Public propertyPageSize
Gets or sets the number of items displayed on each page of the view returned from Data, or 0 to disable paging. A non-zero page size will cause the number of entities loaded with each Load operation to be limited as well, using server-side paging.
Public propertyQueryName
Gets or sets the name of the query to use for loading.
Public propertyRejectChangesCommand
Gets the command for rejecting changes.
Public propertySortDescriptors
Gets the sort descriptors used for sorting operations.
Public propertySubmitChangesCommand
Gets the command for submitting changes.
Top
Events
  NameDescription
Public eventLoadedData
Occurs when a data loading operation is completed.
Public eventLoadingData
Occurs when a data loading operation is started.
Public eventSubmittedChanges
Event raised whenever a submit operation is completed.
Public eventSubmittingChanges
Event raised whenever a submit operation is launched.
Top
Remarks
Use this component to simplify the interaction between the user interface and data from a DataServiceContext. After specifying a DataServiceContext and QueryName, the RadDataServiceDataSource can load data and expose it through the DataView properties. This component also provides codeless integration with other data controls like RadGridView, RadDataPager and RadDataFilter.
See Also