TreeListButtonColumn
A column type for the RadTreeList control that displays a button in each corresponding cell inside all rendered TreeListDataItem instances.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class TreeListButtonColumn : TreeListColumn, IMarkableStateManager, IStateManager, IComparable
Inheritance: objectStateManagerTreeListColumnTreeListButtonColumn
Implements:
Inherited Members
Constructors
public TreeListButtonColumn()
Properties
Gets or sets the CssClass of the button
public virtual string ButtonCssClass { get; set; }
Gets or sets a value indicating the type of the button that will be rendered. The type should be one of the specified by the TreeListButtonColumnType enumeration.
public virtual TreeListButtonColumnType ButtonType { get; set; }
Gets or sets an optional parameter passed to the Command event along with the associated
public virtual string CommandArgument { get; set; }
Gets or sets a value defining the name of the command that will be fired when a button in this column is clicked.
public virtual string CommandName { get; set; }
Gets or sets the height of the Confirm Dialog (if it is a RadWindow)
public virtual Unit ConfirmDialogHeight { get; set; }
Gets or sets what kind of confirm dialog will be used in a GridButtonColumn.
public virtual TreeListConfirmDialogType ConfirmDialogType { get; set; }
The type of the confirm dialog.
Gets or sets the width of the Confirm Dialog (if it is a RadWindow)
public virtual Unit ConfirmDialogWidth { get; set; }
Gets or sets the text that will be shown on the confirmation dialog when a button in this column is clicked. The prompt is automatically enabled when this property is set.
public virtual string ConfirmText { get; set; }
Gets or sets a string, representing a comma-separated enumeration of DataFields from the data source, which will be applied to the formatting specified in the ConfirmTextFormatString property.
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
[TypeConverter(typeof(GridStringArrayConverter))]
public virtual string[] ConfirmTextFields { get; set; }
A string, representing a comma-separated enumeration of DataFields from the data source, which will be applied to the formatting specified in the ConfirmTextFormatString property.
Gets or sets a string, specifying the FormatString of the ConfirmText.
public virtual string ConfirmTextFormatString { get; set; }
A string, specifying the FormatString of the ConfirmText.
Gets or sets the title that will be shown on the RadWindow confirmation dialog when a button in this column is clicked.
public virtual string ConfirmTitle { get; set; }
Gets or sets a value representing a field from the specified data source. The Text property of the rendered button will then be bound to this field.
public virtual string DataTextField { get; set; }
Gets or sets the string that specifies the formatting applied to the value bound to the Text property.
public virtual string DataTextFormatString { get; set; }
Gets or sets a value indicating the URL for the image that will be used in a Image button. ButtonType should be set to ImageButton.
[SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings")]
public virtual string ImageUrl { get; set; }
Gets or sets a value indicating the text that will be shown for a button.
public virtual string Text { get; set; }
Methods
protected virtual string FormatDataValue(object dataValue, TreeListDataItem item)
protected override void InitializeDataCells(TableCell cell, int columnIndex, TreeListDataItem inItem)
Overrides:
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
protected virtual void SetConfirmMessage(WebControl control)