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:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridSelfHierarchySettings : ObjectWithState
Inheritance: objectObjectWithStateGridSelfHierarchySettings
Inherited Members
Example:
<MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client"
EnableNoRecordsTemplate="false"
DataKeyNames= "ID,ParentID" Width="100%">
<SelfHierarchySettings ParentKeyName="ParentID" KeyName="ID"
/>
</MasterTableView>
Constructors
public GridSelfHierarchySettings(StateBag OwnerStateBag, GridTableView owner)
Properties
Gets or sets a value, representing the ID of the current table level in self-referencing hierarchy structure.
public virtual string KeyName { get; set; }
string, representing the current table level.
The value property must be included in the DataKeyNames array for the MasterTableView.
Gets or sets a value indicating the level-depth limit of the nested tables.
public virtual int MaximumDepth { get; set; }
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.
public virtual string ParentKeyName { get; set; }
string, representing the parent ID of the current table level.
The value property must be included in the DataKeyNames array for the MasterTableView.