Skip to main content

How to: Init New Nodes

This example shows how to initialize new node values by handling the ASPxTreeList.InitNewNode event.

The image below shows the result:

exInitNewNode

protected void ASPxTreeList1_InitNewNode(object sender,
DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e) {
    e.NewValues["Budget"] = 500000;
    e.NewValues["Location"] = "Monterey";
}

To learn more, see Adding and Deleting Nodes.