Back to Devexpress

TreeList.EmptyTreeHtmlTemplate Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-a324dfb1.md

latest2.0 KB
Original Source

TreeList.EmptyTreeHtmlTemplate Property

Specifies the default HTML-CSS template for an empty TreeList control.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public HtmlTemplate EmptyTreeHtmlTemplate { get; }
vb
Public ReadOnly Property EmptyTreeHtmlTemplate As HtmlTemplate

Property Value

TypeDescription
HtmlTemplate

The default HTML-CSS template for an empty TreeList control.

|

Remarks

Use the EmptyTreeHtmlTemplate property to specify the default HTML-CSS template for an empty TreeList control (for example, the TreeList has no nodes, a filter expression that filters out all nodes is applied).

You can also create different HTML templates, add them to the HtmlTemplates collection, and handle the QueryEmptyTreeTemplate event to apply the templates based on a condition.

See Also

QueryEmptyTreeTemplate

HtmlTemplates

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace