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

The base class that represents all columns in RadTreeList.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable")]
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class TreeListColumn : StateManager, IMarkableStateManager, IStateManager, IComparable

Inheritance: objectStateManagerTreeListColumn

Derived Classes: TreeListButtonColumnTreeListCalculatedColumnTreeListDataColumnTreeListDragDropColumnTreeListEditCommandColumnTreeListHyperLinkColumnTreeListImageColumnTreeListSelectColumn...

Implements: IComparableIMarkableStateManagerIStateManager

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

Constructors

C#
protected TreeListColumn()

Properties

Returns a string which represents the type of the current column.

C#
[Browsable(false)]
public string ColumnType { get; }

Indicates if the control is in design-mode.

C#
protected bool DesignMode { get; }

Gets or sets a value indicating whether the cells corresponding to a column would be rendered with a 'display:none' style attribute (end-user-not-visible). To completely prevent cells from rendering, set the Visible property to false, instead of the Display property.

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

This property returns a Boolean value, indicating whether the cells corresponding to the column would be rendered with a 'display:none' style attribute (end-user-not-visible).

Use the FooterText property to specify your own or determine the current text for the footer section of the column.

C#
public virtual string FooterText { get; set; }

Style of the cell in the header item of the RadTreeList, corresponding to the column.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual TableItemStyle HeaderStyle { get; }

Gets or sets the text which will appear in the header cell of the column.

C#
public string HeaderText { get; set; }

Gets or sets the tooltip of the header cell.

C#
public virtual string HeaderTooltip { get; set; }
C#
protected virtual bool IsDefaultUniqueName { get; }

Style of the cell in the item of the RadTreeList, corresponding to the column.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual TableItemStyle ItemStyle { get; }

Gets or sets maximum width of the column. Used when resizing.

C#
public virtual Unit MaxWidth { get; set; }
Property Value:

This property returns value in pixels. The default value is Unit.Empty.

Gets or sets minimum width of the column. Used when resizing.

C#
public virtual Unit MinWidth { get; set; }
Property Value:

This property returns value in pixels. The default value is Unit.Empty.

Gets or sets the order index of column used when reordering the columns.

C#
[Browsable(false)]
public int OrderIndex { get; set; }
Property Value:

integer representing the current column index.

Gets a reference to the RadTreeList object to which the column belongs

C#
[Browsable(false)]
public RadTreeList Owner { get; }

Gets or sets a value indicating whether the column can be reordered client-side.

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

This property returns a boolean value, indicating whether the column is reorderable. The default value is true, meaning that the column can be reordered, using the SwapColumns client side method.

Gets or sets a value indicating whether the column can be resized client-side. You can use this property, by setting it to false, to disable resizing for a particular column, while preserving this functionality for all the other columns.

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

The property returns a boolean value, indicating whether the column can be resized on the client.

Should override if sorting will be disabled

C#
protected virtual bool Sortable { get; }

The string representing a filed-name from the DataSource that should be used when grid sorts by this column.

C#
public virtual string SortExpression { get; set; }

Each column in Telerik RadTreeList has an UniqueName property (string). This property is assigned automatically by the designer (or the first time you want to access the columns if they are built dynamically).

C#
[Browsable(true)]
public virtual string UniqueName { get; set; }

Gets or sets a value indicating if the column and all corresponding cells would be rendered.

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

This property returns a Boolean value, indicating whether the cells corresponding to the column, would be visible on the client, and whether they would be rendered on the client.

Methods

C#
protected virtual string GenerateUniqueName()
Returns:

string

C#
protected string GenerateUniqueNameBase(string Base)
Parameters:BasestringReturns:

string

By default returns the SortExpression of the column. If the SortExpression is not set explicitly, it would be calculated, based on the DataField of the column.

C#
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
protected virtual string GetSortExpression()
Returns:

string

Initializes one by one the cells which belong to the column. These could be data, header and footer cells.

C#
public virtual void InitializeCell(TableCell cell, int columnIndex, TreeListItem inItem)
Parameters:cellTableCell

The cell which will be set up.

columnIndexint

The index of the column to which the cell belongs.

inItemTreeListItem

The TreeListItem to which the cell will be added.

C#
protected abstract void InitializeDataCells(TableCell cell, int columnIndex, TreeListDataItem inItem)
Parameters:cellTableCellcolumnIndexintinItemTreeListDataItem
C#
protected virtual void InitializeFooterCells(TableCell cell, int columnIndex, TreeListFooterItem inItem)
Parameters:cellTableCellcolumnIndexintinItemTreeListFooterItem
C#
protected virtual void InitializeHeaderCells(TableCell cell, int columnIndex, TreeListHeaderItem inItem)
Parameters:cellTableCellcolumnIndexintinItemTreeListHeaderItem
C#
protected bool IsUniqueName(string testName)
Parameters:testNamestringReturns:

bool

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: StateManager.LoadViewState(object)

C#
protected override object SaveViewState()
Returns:

object

Overrides: StateManager.SaveViewState()

C#
protected override void TrackViewState()

Overrides: StateManager.TrackViewState()

C#
protected void UpdateUniqueNameIfDefault(string value)
Parameters:valuestring