Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.QueryEmptyTreeTemplate Event

Allows you to assign HTML-CSS templates from the HtmlTemplates collection to an empty TreeList.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DXCategory("Events")]
public event QueryHtmlTemplateEventHandler QueryEmptyTreeTemplate

#Event Data

The QueryEmptyTreeTemplate event's data class is DevExpress.XtraTreeList.QueryTemplateEventArgs.

#Remarks

Handle the QueryEmptyTreeTemplate event to apply a template from the HtmlTemplates collection to an empty TreeList based on a condition.

The QueryEmptyTreeTemplate property specifies the default HTML-CSS template for an empty TreeList control.

See Also