ClassSelfReferenceCellLayout
Represents an layout that is performed in self-referencing for the first data cell
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class SelfReferenceCellLayout : DisposableObject, IDisposable
Inheritance: objectDisposableObjectSelfReferenceCellLayout
Implements:
Inherited Members
Constructors
SelfReferenceCellLayout(GridRowElement)
Initializes a new instance of the SelfReferenceCellLayout class.
Declaration
public SelfReferenceCellLayout(GridRowElement rowElement)
Parameters
rowElement
The row element.
Properties
DataCell
Gets the data cell.
Declaration
protected GridDataCellElement DataCell { get; }
Property Value
The data cell.
ExpanderItem
Gets a value that indicates the expander element associated with the layout
Declaration
public GridExpanderItem ExpanderItem { get; }
Property Value
LinkCount
Gets a value that indicates the links count
LinkIndent
Gets or sets the width of the GridViewIndentColumn.
Links
Gets a collection that contains all links
Declaration
protected List<GridLinkItem> Links { get; }
Property Value
RowElement
Gets a value that indicates the row element associated with the layout
Declaration
protected GridRowElement RowElement { get; }
Property Value
RowInfo
Gets a value that indicates the row associated with the layout
Declaration
protected GridViewHierarchyRowInfo RowInfo { get; }
Property Value
StackLayoutElement
Gets the stack layout element.
Declaration
public StackLayoutElement StackLayoutElement { get; }
Property Value
The stack layout element.
Methods
BindRowProperties()
Binds the row properties.
Declaration
public virtual void BindRowProperties()
CacheLinkItem(GridLinkItem)
Caches the link item.
Declaration
protected void CacheLinkItem(GridLinkItem item)
Parameters
item
The item.
CreateCellElements(GridDataCellElement)
Creates the self-referencing cell's elements.
Declaration
public virtual void CreateCellElements(GridDataCellElement dataCell)
Parameters
dataCell
The data cell.
DetachCellElements()
Detaches the cell elements.
Declaration
public virtual void DetachCellElements()
DisposeLinks()
Disposes the link elements.
Declaration
protected void DisposeLinks()
DisposeManagedResources()
Disposes all managed resources - such as Bitmaps, GDI+ objects, etc.
Declaration
protected override void DisposeManagedResources()
Overrides
GetLinkItem()
Gets the link item.
GetTraverser(IHierarchicalRow)
Gets the traverser for concrete instance of IHierarchicalRow.
Declaration
protected ITraverser<GridViewRowInfo> GetTraverser(IHierarchicalRow hierarchicalRow)
Parameters
hierarchicalRow
An instance of IHierarchicalRow.
Returns
IsFirstChildRow(IHierarchicalRow, GridViewRowInfo)
Determines whether [is first child row] [the specified parent].
Declaration
protected virtual bool IsFirstChildRow(IHierarchicalRow parent, GridViewRowInfo row)
Parameters
parent
The parent.
row
The row.
Returns
true if [is first child row] [the specified parent]; otherwise, false.
IsLastChildRow(IHierarchicalRow, GridViewRowInfo)
Determines whether [is last child row] [the specified parent].
Declaration
protected virtual bool IsLastChildRow(IHierarchicalRow parent, GridViewRowInfo row)
Parameters
parent
The parent.
row
The row.
Returns
true if [is last child row] [the specified parent]; otherwise, false.
UnbindRowProperties()
Unbinds the row properties.
Declaration
public virtual void UnbindRowProperties()
UpdateExpander(bool)
Updates the associated instance of expander primitive
Declaration
protected virtual void UpdateExpander(bool isLastChildRow)
Parameters
isLastChildRow
Value that indicated whether the row is first one.
UpdateLinkTypes(bool)
Updates link types in the specified data cell.
Declaration
protected virtual void UpdateLinkTypes(bool isLastChildRow)
Parameters
isLastChildRow
UpdateLinks(bool)
Updates links
Declaration
protected virtual void UpdateLinks(bool isLastChildRow)
Parameters
isLastChildRow
UpdateLinksCore()
Creates or deletes links
Declaration
protected virtual void UpdateLinksCore()