Class PropertyRelation
This class represents a relation between a parent object and a collection of child objects that are accessible via a property on the master object.
Inherited Members
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public class PropertyRelation : RelationBase, IRelation
Constructors
PropertyRelation()
PropertyRelation(String)
Initializes a new instance of the PropertyRelation class.
Declaration
public PropertyRelation(string parentPropertyName)
Parameters
System.String
parentPropertyName
Name of the parent property. |
Properties
ParentPropertyName
Gets or sets the name of the property on the parent object. For example if the parent object is of type Customer and it has an Orders property that contains a collection of Order objects, then this property should be set to "Orders".
Declaration
public string ParentPropertyName { get; set; }
Property Value
System.String
The name of the parent property. |
Methods
GetDataSource(Object, DataItemCollection)
Gets the child data source.
Declaration
public override object GetDataSource(object context, DataItemCollection parentItems)
Parameters
System.Object
context
The data context. |
DataItemCollection
parentItems
The parent items collection. |
Returns
System.Object
|