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

The abstract base class for all relations.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public abstract class RelationBase : IRelation

Inheritance: objectRelationBase

Derived Classes: TreeListViewTableDefinition.TreeListRelationPropertyRelationTableRelation

Implements: IRelation

Constructors

C#
protected RelationBase()

Properties

Gets or sets a value indicating whether this instance is self-reference. Self-reference relations are used when the child data contains the same objects as the master.

C#
public bool IsSelfReference { get; set; }
Property Value:

True if this relation is a self-reference one; otherwise, false.

Implements: IRelation.IsSelfReference

Gets or sets the name of the relation.

C#
public string Name { get; set; }
Property Value:

The name.

Implements: IRelation.Name

Methods

Gets the child data source.

C#
public abstract object GetDataSource(object context, DataItemCollection parentItems)
Parameters:contextobject

The data context.

parentItemsDataItemCollection

The parent items collection.

Returns:

object