ASPxTreeView() Constructor
In This Article
Initializes a new instance of the ASPxTreeView class with default settings.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#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