Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomBreadcrumbEdit.OnDeleteNode Event

In This Article

Enables you to perform specific actions before a node is deleted.

#Declaration

Delphi
property OnDeleteNode: TdxBreadcrumbEditNodeEvent read; write;

#Remarks

In the breadcrumb, you can bind the custom data to the node using the node’s Data property, or the node’s AddChild and AddNode methods (via the method’s AData parameter).

When deleting the node, this data must be released manually using the OnDeleteNode event:

procedure <TForm1>.<dxBreadcrumbEdit>DeleteNode(Sender: TObject;
  ANode: TdxBreadcrumbEditNode);
var
  P: Pointer;
begin
  P := ANode.Data;
  if P <> nil then
    Dispose(P);
end;

Sender specifies the breadcrumb control.

ANode specifies the node that will be deleted.

See Also