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

BreadCrumbEdit.Path Property

Gets or sets the current nodes path within this BreadCrumbEdit, starting from a root BreadCrumbNode to the last node visible.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue("")]
public string Path { get; set; }

Property Value

Type Default Description
String String.Empty

A String value that is the textual representation of the current BreadCrumbEdit nodes path.

Remarks

The Path property returns the string value that specifies the full path within this BreadCrumbEdit that needs to be traveled starting from the first root node to get to the last currently selected node. Nodes, whose BreadCrumbNode.Persistent property equals true, are not included in the BreadCrumbEdit path.

You can use the Path property to manually specify the editor’s path with new, yet undefined nodes. In this case, handle the RepositoryItemBreadCrumbEdit.ValidatePath, RepositoryItemBreadCrumbEdit.NewNodeAdding and RepositoryItemBreadCrumbEdit.QueryChildNodes events to create and dynamically populate these nodes. See the Breadcrumb Edit Control topic for an example.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Path property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also