Skip to main content
Tab

ASPxTreeView() Constructor

Initializes a new instance of the ASPxTreeView class with default settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public ASPxTreeView()

Example

The code below creates a new instance of the ASPxTreeView class, binds it to an XMLDataSource and places it on a panel.

using DevExpress.Web.ASPxTreeView;

...

protected void Create_ASPxTreeView() {
        ASPxTreeView myTreeView = new ASPxTreeView();
        myTreeView.DataSource = XmlDataSource1;
        myTreeView.AllowCheckNodes = true;
        myTreeView.DataBind();
        Panel1.Controls.Add(myTreeView);
}
See Also