Represents a TreeListColumn extended to perform calculations upon fields from the data source.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class TreeListCalculatedColumn : TreeListColumn, IMarkableStateManager, IStateManager, IComparable
Inheritance: objectStateManagerTreeListColumnTreeListCalculatedColumn
Implements:
Inherited Members
Constructors
TreeListCalculatedColumn Constructor
public TreeListCalculatedColumn()
Properties
Gets or sets the field name from the specified data source to bind to the TreeListBoundColumn.
public virtual TreeListAggregateFunction Aggregate { get; set; }
A string, specifying the data field from the data source, from which to bind the column.
Gets or sets a whether the column data can be sorted.
public virtual bool AllowSorting { get; set; }
A boolean value, indicating whether the column data can be sorted.
Gets or sets a string, representing a comma-separated enumeration of DataFields from the data source, which will form the expression.
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
[TypeConverter(typeof(GridStringArrayConverter))]
public virtual string[] DataFields { get; set; }
A string, representing a comma-separated enumeration of DataFields from the data source, which will form the expression.
Gets or sets the string used for formatting the calculated column value.
public virtual string DataFormatString { get; set; }
Gets or sets (see the Remarks) the type of the data from the DataField as it was set in the DataSource.
[TypeConverter(typeof(GridDataTypeConverter))]
public Type DataType { get; set; }
The DataType property supports the following base .NET Framework data types:
- Boolean
- Byte
- Char
- DateTime
- Decimal
- Double
- Int16
- Int32
- Int64
- SByte
- Single
- String
- TimeSpan
- UInt16
- UInt32
- UInt64
Gets or sets a string representing the expression used when calculating the column values.
public virtual string Expression { get; set; }
Gets or sets a string used for formatting the footer aggregate text.
public virtual string FooterAggregateFormatString { get; set; }
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.
protected override void InitializeDataCells(TableCell cell, int columnIndex, TreeListDataItem inItem)
Overrides:
protected override void InitializeFooterCells(TableCell cell, int columnIndex, TreeListFooterItem inItem)
Overrides: