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

Represents a TreeListColumn which allows templating its content.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class TreeListTemplateColumn : TreeListEditableColumn, IMarkableStateManager, IStateManager, IComparable

Inheritance: objectStateManagerTreeListColumnTreeListDataColumnTreeListEditableColumnTreeListTemplateColumn...

Implements: IComparableIMarkableStateManagerIStateManager

Inherited Members TreeListEditableColumn.GetColumnEditor(TreeListEditableItem)TreeListEditableColumn.ShouldExtractValues(TreeListEditableItem)TreeListEditableColumn.TryGetColumnValueFromDataKeys(TreeListDataItem, out object)TreeListEditableColumn.GetColumnValueFromDataCell(TableCell)TreeListEditableColumn.GetEditorValues(TreeListEditableItem)TreeListEditableColumn.ReadOnlyTreeListEditableColumn.IsEditableTreeListEditableColumn.ForceExtractValueTreeListEditableColumn.DefaultInsertValueTreeListEditableColumn.EditFormHeaderTextFormatTreeListEditableColumn.EditFormColumnIndexTreeListEditableColumn.UseNativeEditorsInMobileModeTreeListDataColumn.GetSortExpression()TreeListDataColumn.DataFieldTreeListDataColumn.AllowSortingTreeListDataColumn.SortableTreeListDataColumn.DataTypeTreeListColumn.InitializeCell(TableCell, int, TreeListItem)TreeListColumn.IsUniqueName(string)TreeListColumn.GenerateUniqueNameBase(string)TreeListColumn.UpdateUniqueNameIfDefault(string)TreeListColumn.TrackViewState()TreeListColumn.SaveViewState()TreeListColumn.LoadViewState(object)TreeListColumn.OwnerTreeListColumn.DesignModeTreeListColumn.ColumnTypeTreeListColumn.HeaderTextTreeListColumn.HeaderTooltipTreeListColumn.FooterTextTreeListColumn.IsDefaultUniqueNameTreeListColumn.UniqueNameTreeListColumn.HeaderStyleTreeListColumn.ItemStyleTreeListColumn.VisibleTreeListColumn.ResizableTreeListColumn.ReorderableTreeListColumn.MinWidthTreeListColumn.MaxWidthTreeListColumn.DisplayTreeListColumn.OrderIndexTreeListColumn.SortExpressionStateManager.IsTrackingViewStateStateManager.ViewStateobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public TreeListTemplateColumn()

Properties

Gets or sets the field name from the specified data source to bind to the TreeListBoundColumn.

C#
public virtual TreeListAggregateFunction Aggregate { get; set; }
Property Value:

A string, specifying the data field from the data source, from which to bind the column.

Convert the emty string to null when extracting values during data editing operations.

C#
public bool ConvertEmptyStringToNull { get; set; }

Gets or sets an ITemplate implementation representing the edit template of the column.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(TreeListEditableItem), BindingDirection.TwoWay)]
public virtual ITemplate EditItemTemplate { get; set; }

Gets or sets a string that is used to format the footer cell of the column.

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

Gets or sets an ITemplate implementation representing the footer template of the column.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(TreeListFooterItem), BindingDirection.TwoWay)]
public virtual ITemplate FooterTemplate { get; set; }

Gets or sets an ITemplate implementation representing the header template of the column.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(TreeListHeaderItem), BindingDirection.TwoWay)]
public virtual ITemplate HeaderTemplate { get; set; }

Gets or sets an ITemplate implementation representing the insert template of the column. If not set, the EditItemTemplate is used for the insert form as well.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(TreeListEditableItem), BindingDirection.TwoWay)]
public virtual ITemplate InsertItemTemplate { get; set; }

Gets or sets an ITemplate implementation representing the regular item template of the column.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(TreeListDataItem), BindingDirection.TwoWay)]
public virtual ITemplate ItemTemplate { get; set; }

Methods

Creates the default column editor for the column.

C#
public override ITreeListColumnEditor CreateDefaultColumnEditor()
Returns:

ITreeListColumnEditor

A TreeListTemplateColumnEditor representing the default editor for this column.

Overrides: TreeListEditableColumn.CreateDefaultColumnEditor()

Populates the passed values into the provided TreeListEditableItem.

C#
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
public override void FillValues(IDictionary newValues, TreeListEditableItem editableItem)
Parameters:newValuesIDictionary

An IDictionary collection of values.

editableItemTreeListEditableItem

The TreeListEditableItem which should be populated with the provided values.

Overrides: TreeListEditableColumn.FillValues(IDictionary, TreeListEditableItem)

C#
protected override string GenerateUniqueName()
Returns:

string

Overrides: TreeListColumn.GenerateUniqueName()

C#
protected override void InitializeDataCells(TableCell cell, int columnIndex, TreeListDataItem inItem)
Parameters:cellTableCellcolumnIndexintinItemTreeListDataItem

Overrides: TreeListDataColumn.InitializeDataCells(TableCell, int, TreeListDataItem)

C#
protected override void InitializeFooterCells(TableCell cell, int columnIndex, TreeListFooterItem inItem)
Parameters:cellTableCellcolumnIndexintinItemTreeListFooterItem

Overrides: TreeListDataColumn.InitializeFooterCells(TableCell, int, TreeListFooterItem)

C#
protected override void InitializeHeaderCells(TableCell cell, int columnIndex, TreeListHeaderItem inItem)
Parameters:cellTableCellcolumnIndexintinItemTreeListHeaderItem

Overrides: TreeListColumn.InitializeHeaderCells(TableCell, int, TreeListHeaderItem)

C#
protected override void OnColumnDataCellBinding(object sender, EventArgs e)
Parameters:senderobjecteEventArgs

Overrides: TreeListDataColumn.OnColumnDataCellBinding(object, EventArgs)