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

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:

C#
public class TreeListButtonColumn : TreeListColumn, IMarkableStateManager, IStateManager, IComparable

Inheritance: objectStateManagerTreeListColumnTreeListButtonColumn

Implements: IComparableIMarkableStateManagerIStateManager

Inherited Members TreeListColumn.InitializeCell(TableCell, int, TreeListItem)TreeListColumn.InitializeFooterCells(TableCell, int, TreeListFooterItem)TreeListColumn.InitializeHeaderCells(TableCell, int, TreeListHeaderItem)TreeListColumn.IsUniqueName(string)TreeListColumn.GenerateUniqueNameBase(string)TreeListColumn.GenerateUniqueName()TreeListColumn.UpdateUniqueNameIfDefault(string)TreeListColumn.GetSortExpression()TreeListColumn.TrackViewState()TreeListColumn.SaveViewState()TreeListColumn.LoadViewState(object)TreeListColumn.OwnerTreeListColumn.DesignModeTreeListColumn.ColumnTypeTreeListColumn.HeaderTextTreeListColumn.HeaderTooltipTreeListColumn.FooterTextTreeListColumn.IsDefaultUniqueNameTreeListColumn.UniqueNameTreeListColumn.HeaderStyleTreeListColumn.ItemStyleTreeListColumn.VisibleTreeListColumn.SortableTreeListColumn.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 TreeListButtonColumn()

Properties

Gets or sets the CssClass of the button

C#
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.

C#
public virtual TreeListButtonColumnType ButtonType { get; set; }

Gets or sets an optional parameter passed to the Command event along with the associated

C#
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.

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

Gets or sets the height of the Confirm Dialog (if it is a RadWindow)

C#
public virtual Unit ConfirmDialogHeight { get; set; }

Gets or sets what kind of confirm dialog will be used in a GridButtonColumn.

C#
public virtual TreeListConfirmDialogType ConfirmDialogType { get; set; }
Property Value:

The type of the confirm dialog.

Gets or sets the width of the Confirm Dialog (if it is a RadWindow)

C#
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.

C#
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.

C#
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
[TypeConverter(typeof(GridStringArrayConverter))]
public virtual string[] ConfirmTextFields { get; set; }
Property Value:

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.

C#
public virtual string ConfirmTextFormatString { get; set; }
Property Value:

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.

C#
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.

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

Gets or sets the string that specifies the formatting applied to the value bound to the Text property.

C#
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.

C#
[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.

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

Gets or sets the tooltip for each of buttons.

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

Methods

C#
protected virtual string FormatConfirmTextValue(object[] confirmTextFields)
Parameters:confirmTextFieldsobject[]Returns:

string

C#
protected virtual string FormatDataValue(object dataValue, TreeListDataItem item)
Parameters:dataValueobjectitemTreeListDataItemReturns:

string

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

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

C#
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
protected virtual void SetConfirmMessage(WebControl control)
Parameters:controlWebControl
C#
protected virtual bool ShouldCauseValidation(string command)
Parameters:commandstringReturns:

bool