PrintBeforeEvent

Represents event arguments triggered before the print operation begins. Provides access to grid data, columns, and print configuration, allowing customization or cancellation. Enables data transformation, column filtering, or validation before sending to the print window.

Props

The following table outlines the props for the PrintBeforeEvent:

NameTypeDefaultDescription
cancel
boolean
false

Flag to cancel the print operation. Set to true to prevent the print dialog from opening.

columns
-

Array of columns to be included in the print output. Modify this array to include/exclude columns or reorder them before printing.

config
-

Print configuration settings applied to the current operation. Contains information about the print range, window dimensions, and title.

dataSource
T[]
-

Array of data records to be printed. Modify this array to transform, filter, or sort data before printing.