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

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:


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.