TreeListSettings.HtmlCommandCellPrepared Property
Enables the settings of individual command cells to be changed.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
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.