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

How to: Delete Selected Nodes

This example shows how to delete selected nodes.

The image below shows the result:


To learn more, see Adding and Deleting Nodes.

using DevExpress.Web.ASPxTreeList;

protected void Page_Load(object sender, EventArgs e) {
    ASPxTreeList1.SettingsEditing.AllowRecursiveDelete = true;
protected void ASPxTreeList1_CustomCallback(object sender,
TreeListCustomCallbackEventArgs e) {
    foreach (TreeListNode node in ASPxTreeList1.GetSelectedNodes())