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

TdxCustomTreeView.OnEdited Event

In This Article

Allows you to perform specific actions when a user renames a node in an in-place editor.

#Declaration

Delphi
property OnEdited: TdxTreeViewNodeTextEvent read; write;

#Remarks

This event occurs when the Tree View control applies user changes made in an in-place editor. Assign a string to the AText parameter to specify the caption edited in an in-place editor.

The following OnEdited event handler discards changes made in an in-place editor if a user assigns an empty string to a node caption:

procedure TForm1.dxTreeViewControl1Edited(Sender: TdxCustomTreeView;
  ANode: TdxTreeViewNode; var AText: string);
begin
  if AText = '' then
    AText := ANode.Caption;
end;

Refer to the TdxTreeViewNodeTextEvent type description for information on available options.

See Also