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.OnGroupDragBegin Event

In This Article

Enables you to forbid end-users to drag-and-drop specific tile groups within the control.

#Declaration

Delphi
property OnGroupDragBegin: TdxTileControlGroupDragBeginEvent read; write;

#Remarks

This event occurs every time an end-user starts dragging a tile group. You can assign False to the AAllow parameter within the OnGroupDragBegin event handler to prevent an end-user from dragging all or only specific groups within the control. For instance, you can allow end-users to drag only the top or leftmost group, depending on the OptionsView.GroupLayout property value:

procedure TMyForm.dxTileControl1GroupDragBegin(Sender: TdxCustomTileControl; AInfo: TdxTileControlDragGroupInfo; var AAllow: Boolean);
begin
  if AInfo.BeginIndex <> 0 then  // If the dragged group is not the first...
    AAllow := False;  // Forbids an end-user to drop a group here
end;

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

See Also