Skip to main content
A newer version of this page is available. .

TreeListDataColumn.DataCellTemplate Property

Gets or sets a template for displaying data cells within the current column.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v19.1.dll

Declaration

public ITemplate DataCellTemplate { get; set; }

Property Value

Type Description
ITemplate

An object that implements the ITemplate interface.

Remarks

To provide a common template for displaying data cells within the ASPxTreeList, use the TreeListTemplates.DataCell property.

Once a template defined via the DataCellTemplate property is created within a control, it is instantiated within a container object of the TreeListDataCellTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.

Note

By default, the ASPxTreeList takes data from the server side only for a newly expanded node but updates the HTML markup of all nodes. This can result in loss of the client state of controls placed in a template.
In this case, set the TreeListSettingsBehavior.DisablePartialUpdate property to true to prevent partial control updates.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataCellTemplate property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also