TreeListImageColumn
Represents a TreeListColumn extended to display an Image in each of its data cells.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class TreeListImageColumn : TreeListColumn, IMarkableStateManager, IStateManager, IComparable, IDisposable
Inheritance: objectStateManagerTreeListColumnTreeListImageColumn
Implements:
Inherited Members
Constructors
public TreeListImageColumn()
Fields
protected const string SuportedExtensions = "*.gif;*.jpg;*.jpeg;*.bmp;*.wmf;*.png"
Properties
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, specifying the text which will be shown as alternate text to the image
public virtual string AlternateText { get; set; }
Gets or sets a string, representing the DataField name from the data source, which will be used to supply the alternateText for the image in the column. This text can further be customized, by using the DataTextFormatString property.
public virtual string DataAlternateTextField { get; set; }
A string, representing the DataField name from the data source, which will be used to supply the alternate text for the image in the column.
Gets or sets a string, specifying the format string, which will be used to format the alternate text of the image, rendered in the cells of the column.
public virtual string DataAlternateTextFormatString { get; set; }
A string, specifying the format string, which will be used to format the text of the hyperlink, rendered in the cells of the column.
Gets or sets a string, representing a comma-separated enumeration of DataFields from the data source, which will form the url of the image which will be shown.
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
[TypeConverter(typeof(GridStringArrayConverter))]
public virtual string[] DataImageUrlFields { get; set; }
A string, representing a comma-separated enumeration of DataFields from the data source, which will form the url of the image which will be shown.
Gets or sets a string, specifying the FormatString of the DataNavigateURL. Essentially, the DataNavigateUrlFormatString property sets the formatting for the url string of the image.
public virtual string DataImageUrlFormatString { get; set; }
A string, specifying the FormatString of the DataNavigateURL.
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 value from the ImageAlign enumeration representing the alignment of the rendered image in relation to the text.
public virtual ImageAlign ImageAlign { get; set; }
Gets or sets the height of the image
public Unit ImageHeight { get; set; }
Gets or sets a string, specifying the url, from which the image should be retrieved. This property will be honored only if the DataImageUrlFields are not set. If either DataImageUrlFields are set, they will override the ImageUrl property.
public virtual string ImageUrl { get; set; }
A string, specifying the url, from which the image, should be loaded.
Gets or sets the width of the image
public Unit ImageWidth { get; set; }
Methods
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Implements:
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: