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

TdxCustomTileControl.OnGroupRemoveWithLastItem Event

In This Article

Enables you to prevent automatic tile group destruction when its last item is removed or destroyed.

#Declaration

Delphi
property OnGroupRemoveWithLastItem: TdxTileControlGroupRemoveWithLastItemEvent read; write;

#Remarks

This event occurs every time the last item in a group is removed or deleted, and the control is about to delete the emptied group automatically. You can assign False to the AAllow parameter within an OnGroupRemoveWithLastItem event handler to keep the emptied group accessible via the AGroup parameter.

For instance, you can preserve emptied named groups (that is, groups with captions):

procedure TMyForm.dxTileControl1GroupRemoveWithLastItem(Sender: TdxCustomTileControl; AGroup: TdxTileControlGroup; var AAllow: Boolean);
begin
  AAllow := AGroup.Caption.Text = '';  // Allows automatic deletion for all groups without an assigned caption text
end;

Refer to the TdxTileControlGroupRemoveWithLastItem procedural type description for detailed information on all parameters accessible within an OnGroupRemoveWithLastItem event handler.

See Also