A newer version of this page is available. Switch to the current version.

ASPxTreeList Class

Represents a server ASPxTreeList control.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v18.2.dll

Declaration

public class ASPxTreeList :
    ASPxDataWebControl,
    IWebColumnsOwner,
    IPagerOwner,
    IControlDesigner,
    IPrintable,
    IBasePrintable,
    ITreeListExportOwner,
    IPopupFilterControlOwner,
    IFilterControlRowOwner,
    IFilterControlOwner,
    IPopupFilterControlStyleOwner,
    IHeaderFilterPopupOwner,
    ISkinOwner,
    IPropertiesOwner,
    IFilterHelperOwner,
    IBatchEditHelperOwner
Public Class ASPxTreeList
    Inherits ASPxDataWebControl
    Implements IWebColumnsOwner,
               IPagerOwner,
               IControlDesigner,
               IPrintable,
               IBasePrintable,
               ITreeListExportOwner,
               IPopupFilterControlOwner,
               IFilterControlRowOwner,
               IFilterControlOwner,
               IPopupFilterControlStyleOwner,
               IHeaderFilterPopupOwner,
               ISkinOwner,
               IPropertiesOwner,
               IFilterHelperOwner,
               IBatchEditHelperOwner

Related API Members

The following members accept/return ASPxTreeList objects:

Library Related API Members
ASP.NET Controls and MVC Extensions ASPxTreeListExporter.TreeList
MVCxTreeListExporter.TreeList
TreeListColumn.TreeList
TreeListColumnCollection.TreeList
TreeListPopupControlStyles.TreeList
TreeListSettingsText.TreeList
TreeListTemplateContainerBase.TreeList
eXpressApp Framework ASPxTreeListEditor.TreeList

Remarks

The ASPxTreeList is a multi-purpose data visualization control that can display information as a tree or grid - either in data-bound or unbound mode.

ASPxTreeList

The ASPxTreeList provides the following key features

NOTE

The ASPxTreeList control provides you with a comprehensive client-side functionality implemented using JavaScript code:

The client-side API is always available for this control.

Example

Declaratively:

<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" KeyFieldName="ProductID">
  <Columns>
      <dx:TreeListTextColumn AutoFilterCondition="Default" FieldName="ProductName" ShowInFilterControl="Default" VisibleIndex="0">
      </dx:TreeListTextColumn>
      <dx:TreeListTextColumn AutoFilterCondition="Default" FieldName="UnitPrice" ShowInFilterControl="Default" VisibleIndex="1">
      </dx:TreeListTextColumn>
  </Columns>
</dx:ASPxTreeList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\Docs\DB\nwind.mdb"
    ProviderName="System.Data.OleDb" SelectCommand="SELECT [ProductID], [ProductName], [UnitPrice] FROM [Products]">
</asp:SqlDataSource>

Programmatically:

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\Docs\DB\nwind.mdb"
    ProviderName="System.Data.OleDb" SelectCommand="SELECT [ProductID], [ProductName], [UnitPrice] FROM [Products]">
</asp:SqlDataSource>
See Also