Skip to main content
All docs
V26.1
  • TdxCustomReportControl.OnLayoutChanged Event

    Allows you to respond to dashboard layout changes made in the Report Designer dialog.

    Declaration

    property OnLayoutChanged: TdxReportControlNotifyEvent read; write;

    Remarks

    Handle the OnLayoutChanged event to execute custom code in response to report layout updates.

    Event Occurrence

    The OnLayoutChanged event occurs in response to layout changes made in the Report Designer dialog.

    Event Parameter

    The ASender parameter provides access to the TdxReportControl component that raised the OnLayoutChanged event.

    Code Example: Save Report Layout to File on Every Change

    The following code example saves the current Report layout to a file in the REPX format every time a user saves pending changes in the Report Designer dialog:

    uses
      dxReport.Control;  // Declares the TdxReport class
    // ...
    
    procedure TMyForm.dxReport1LayoutChanged(ASender: TdxCustomReportControl);
    begin
      ASender.Layout.SaveToFile(ASender.ReportName + '.xml');
    end;
    
    See Also