RepositoryItemBreadCrumbEdit.NewNodeAdding Event

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Events")]
public event BreadCrumbNewNodeAddingEventHandler NewNodeAdding
<DXCategory("Events")>
Public Event NewNodeAdding As BreadCrumbNewNodeAddingEventHandler

Event Data

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

Remarks

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