TreeListSettings.HtmlDataCellPrepared Property
Enables the settings of individual 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 |
---|---|
TreeListHtmlDataCellEventHandler | A TreeListHtmlDataCellEventHandler delegate method allowing you to implement custom processing. |
Remarks
The HtmlDataCellPrepared event is raised for each data cell within the TreeList when the corresponding table cell has been created. You can handle this event to change the style settings of individual cells.
The processed cell is identified by the event parameter’s TreeListHtmlDataCellEventArgs.Cell property. Its value is returned by the TreeListHtmlDataCellEventArgs.CellValue property. The column and node where the processed cell resides can be obtained via the TreeListHtmlDataCellEventArgs.Column and TreeListHtmlRowEventArgs.Row properties.
Example
The following example illustrates how to hide the tree list’s parent nodes cell content.