Skip to main content

RepositoryItemBreadCrumbEdit.NewNodeAdding Event

Occurs each time a new node is about to be added to this BreadCrumbEdit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public event BreadCrumbNewNodeAddingEventHandler NewNodeAdding

Event Data

The NewNodeAdding event's data class is DevExpress.XtraEditors.BreadCrumbNewNodeAddingEventArgs.


When a BreadCrumbEdit has to navigate to an unknown BreadCrumbEdit.Path, the RepositoryItemBreadCrumbEdit.ValidatePath event is raised. Handle this event to disable the navigation or enable it and create the required nodes. If you choose to create the nodes, the NewNodeAdding event will be raised, which allows you to customize the node that is to be added. Finally, the RepositoryItemBreadCrumbEdit.QueryChildNodes event fires. This event allows you to dynamically populate the newly created node’s BreadCrumbNode.ChildNodes collection. See the Breadcrumb Edit Control topic for an example.

See Also