@kanunilabs/datagrid-react / PrintLayoutOptions
Interface: PrintLayoutOptions
Properties
always?
optionalalways?:boolean
Stay in print layout permanently instead of only while printing. For rendering a grid INTO a report page, where there is no print dialog to react to and the whole result is meant to be in the document.
maxRows?
optionalmaxRows?:number
Above this many rows the grid does NOT switch (default 5.000).
Print layout puts every row in the DOM. At report sizes that is a beat;
at a hundred thousand it is a frozen tab, and a browser that stops
responding during printing is worse than a short printout. Past the cap the
grid prints what it always did — the visible rows — and says so under
debugMode, because the right tool at that size is exportPdf, which
streams instead.
onLimit?
optionalonLimit?: (info) =>void
Called when a print is asked for and the result is over maxRows, so the
grid prints the rows on screen only. Tell the user, or offer the PDF
export: without it the shorter printout is silent (Tekax, 2026-10-28).
Parameters
info
maxRows
number
rows
number
Returns
void
repeatHeader?
optionalrepeatHeader?:boolean
Print the column headers (band rows, header, filter row) at the top of EVERY page, not only the first (default true; Tekax P-15). A row is never split across two pages, whichever way this is set. The summary row prints once, after the last row.