Class
RelationBase

The abstract base class for all relations.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public abstract class RelationBase : IRelation

Inheritance: objectRelationBase

Derived Classes: TreeListViewTableDefinition.TreeListRelationPropertyRelationTableRelation

Implements: IRelation

Constructors

RelationBase()

Declaration

cs-api-definition
protected RelationBase()

Properties

IsSelfReference

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.

Declaration

cs-api-definition
public bool IsSelfReference { get; set; }

Property Value

bool

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

Implements IRelation.IsSelfReference

Name

Gets or sets the name of the relation.

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

The name.

Implements IRelation.Name

Methods

GetDataSource(object, DataItemCollection)

Gets the child data source.

Declaration

cs-api-definition
public abstract object GetDataSource(object context, DataItemCollection parentItems)

Parameters

context

object

The data context.

parentItems

DataItemCollection

The parent items collection.

Returns

object