New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Holds the column names presenting the self-referencing relations in the source table.

Meaningful in cases of self-referenced grid.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridSelfHierarchySettings : ObjectWithState

Inheritance: objectObjectWithStateGridSelfHierarchySettings

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Example:

<MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" EnableNoRecordsTemplate="false"
DataKeyNames= "ID,ParentID" Width="100%">
<SelfHierarchySettings ParentKeyName="ParentID" KeyName="ID" />
</MasterTableView>

Constructors

C#
public GridSelfHierarchySettings(StateBag OwnerStateBag, GridTableView owner)
Parameters:OwnerStateBagStateBagownerGridTableView

Properties

Gets or sets a value, representing the ID of the current table level in self-referencing hierarchy structure.

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

string, representing the current table level.

The value property must be included in the DataKeyNames array for the MasterTableView.

Example:
C#

Gets or sets a value indicating the level-depth limit of the nested tables.

C#
public virtual int MaximumDepth { get; set; }
Property Value:

integer, representing the depth limit in levels of nesting. By default the limit is 10 levels.

This property can be set only once when the grid is initialized and can not be modified.

Gets or sets a value representing the parent ID field when building the self-referencing hierarchy.

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

string, representing the parent ID of the current table level.

The value property must be included in the DataKeyNames array for the MasterTableView.

Example:
C#

Methods

Checks if a self-hierarchy settings property value was changed and differs from its default.

C#
public bool IsSet()
Returns:

bool

This method is for Telerik RadGrid internal usage.