Skip to main content

TreeListSettings.HtmlCommandCellPrepared Property

Enables the settings of individual command cells to be changed.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public TreeListHtmlCommandCellEventHandler HtmlCommandCellPrepared { get; set; }

Property Value

Type Description
TreeListHtmlCommandCellEventHandler

A TreeListHtmlCommandCellEventHandler delegate method allowing you to implement custom processing.

Remarks

The HtmlCommandCellPrepared event is raised for each cell within command columns when the corresponding table cell has been created. You can handle this event, for example, to change the style settings of individual command cells.

The processed cell is identified by the event parameter’s TreeListHtmlCommandCellEventArgs.Cell property. The column and node where the processed cell resides can be obtained via the TreeListHtmlCommandCellEventArgs.Column and TreeListHtmlCommandCellEventArgs.NodeKey properties.

Example

The following example illustrates how to hide the tree list’s parent nodes cell content.

.HideCell { 
    visibility: hidden;
}
See Also