Skip to main content

TreeListDataColumn.DataCellTemplate Property

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

Namespace: DevExpress.Web.ASPxTreeList

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

NuGet Package: DevExpress.Web

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.

See Also