TreeListColumn
The base class that represents all columns in RadTreeList.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable")]
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class TreeListColumn : StateManager, IMarkableStateManager, IStateManager, IComparable
Inheritance: objectStateManagerTreeListColumn
Derived Classes:
Implements:
Inherited Members
Constructors
protected TreeListColumn()
Properties
Returns a string which represents the type of the current column.
[Browsable(false)]
public string ColumnType { get; }
Indicates if the control is in design-mode.
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.
public bool Display { get; set; }
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.
public virtual string FooterText { get; set; }
Style of the cell in the header item of the RadTreeList, corresponding to the column.
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual TableItemStyle HeaderStyle { get; }
Gets or sets the text which will appear in the header cell of the column.
public string HeaderText { get; set; }
Gets or sets the tooltip of the header cell.
public virtual string HeaderTooltip { get; set; }
protected virtual bool IsDefaultUniqueName { get; }
Style of the cell in the item of the RadTreeList, corresponding to the column.
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual TableItemStyle ItemStyle { get; }
Gets or sets maximum width of the column. Used when resizing.
public virtual Unit MaxWidth { get; set; }
This property returns value in pixels. The default value is Unit.Empty.
Gets or sets minimum width of the column. Used when resizing.
public virtual Unit MinWidth { get; set; }
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.
[Browsable(false)]
public int OrderIndex { get; set; }
integer representing the current column index.
Gets a reference to the RadTreeList object to which the column belongs
[Browsable(false)]
public RadTreeList Owner { get; }
Gets or sets a value indicating whether the column can be reordered client-side.
public virtual bool Reorderable { get; set; }
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.
public virtual bool Resizable { get; set; }
The property returns a boolean value, indicating whether the column can be resized on the client.
The string representing a filed-name from the DataSource that should be used when grid sorts by this column.
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).
[Browsable(true)]
public virtual string UniqueName { get; set; }
Gets or sets a value indicating if the column and all corresponding cells would be rendered.
public virtual bool Visible { get; set; }
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
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.
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
protected virtual string GetSortExpression()
Initializes one by one the cells which belong to the column. These could be data, header and footer cells.
public virtual void InitializeCell(TableCell cell, int columnIndex, TreeListItem inItem)
The cell which will be set up.
columnIndexintThe index of the column to which the cell belongs.
inItemTreeListItemThe TreeListItem to which the cell will be added.
protected abstract void InitializeDataCells(TableCell cell, int columnIndex, TreeListDataItem inItem)
protected virtual void InitializeFooterCells(TableCell cell, int columnIndex, TreeListFooterItem inItem)
protected virtual void InitializeHeaderCells(TableCell cell, int columnIndex, TreeListHeaderItem inItem)
protected override void TrackViewState()
Overrides: